https://discord.cloudflare.com logo
Join Discord
Powered by
# r2
  • t

    Tielem

    05/03/2023, 3:55 PM
    I don't fully see the relationship with multipart upload in the above? Multipart upload is when a file is too large (say 1GB) to send in one go (buffer size, bad network, ...), so you upload it in different parts (say 1000 parts of 1MB). The latest worker typings have support for multipart upload on R2 - https://developers.cloudflare.com/r2/api/workers/workers-multipart-usage/
  • d

    dkfdkdodkms

    05/03/2023, 3:56 PM
    yes, but restrictions (such as each part must be the same length, besides the last) prevents me from using it. i need to handle this custom
  • d

    dkfdkdodkms

    05/03/2023, 4:01 PM
    with the above i can easily keep track of what specific parts have been uploaded
  • d

    dkfdkdodkms

    05/03/2023, 4:01 PM
    otherwise, i don't know of an efficient way to do it
  • a

    AmblingPanda

    05/03/2023, 4:22 PM
    Hey, I added a lifecycle rule which is deleting over 100TB of objects (each object is in the order of 50gb). I'm finding the web UI is mega unresponsive, but I can seemingly retrieve files outside the lifecycle policy from the public endpoint. Is there much risk to the files outside the lifecycle policy? I need to make a similar change to another bucket which can impact our SLA so I thought I would check here first
  • s

    Sid | R2

    05/03/2023, 5:08 PM
    I'm not sure I understand, but a deletion lifecycle rule will not affect objects that don't "match" the policy
  • a

    AmblingPanda

    05/03/2023, 5:48 PM
    Yes, but given I was seeing multiple errors and very slow loading from the web ui, I grew concerned that triggering such a large GC may have other performance implications for the bucket
  • s

    Sid | R2

    05/03/2023, 5:50 PM
    So the UI being slow isn’t correlated to actions on your bucket, I’ll check out what’s going on with the UI. If you want to confirm if your lifecycle rules are correctly configured, you can try and fetch them via the S3 API as well
  • g

    godfather

    05/03/2023, 9:08 PM
    Hi guys, I am building a mobile app were i need to store and retrieve images. We are using R2 for that in golang server (gin framework). I have created a bucket and give edit permission and got api-key and secret. I am using cloudfare-go sdk, but I am stuck since yesterday on how to upload the image using the sdk , i tried many method likes uploadimages() but nothing worked. Can someone please help me?
  • k

    kian

    05/03/2023, 9:11 PM
    I doubt there is any method in the SDK to do it
  • k

    kian

    05/03/2023, 9:11 PM
    You'd be better off using aws-sdk-go
  • r

    robert

    05/03/2023, 10:36 PM
    I'm trying to add a custom domain to an R2 bucket but when I click on
    Connect Domain
    , I see the error
    No route for that URI (Code: 7000)
    , even before I start typing a domain (and it keeps erroring after I type a domain). Anyone run into this before?
  • j

    James

    05/03/2023, 10:51 PM
    I can reproduce, let me raise this. Thanks for the report
  • j

    James

    05/03/2023, 11:11 PM
    Raised and the team is on it. Thanks again for reporting
  • r

    robert

    05/03/2023, 11:14 PM
    Thanks James!
  • e

    Erisa | Support Engineer

    05/03/2023, 11:49 PM
    btw to add for context, this was raised as https://www.cloudflarestatus.com/incidents/n8b4zhdkvsb9 - thank you @robert for reporting!
  • w

    Walshy | Pages

    05/03/2023, 11:52 PM
    @robert this should now be resolved, please reload the dash and you should be good to go 🙂
  • r

    robert

    05/03/2023, 11:54 PM
    Wow amazing, thanks y'all, it worked!
  • j

    James

    05/03/2023, 11:54 PM
    Sweet 😄
  • g

    George Boot

    05/04/2023, 10:25 AM
    Is there any ETA for per-bucket tokens? We want our data suppliers to upload directly to R2 (can't use browsers because it's many TB per dataset), but for that to work we need tokens that only have write access to a specific bucket
    k
    • 2
    • 5
  • i

    indiecodepreneur

    05/04/2023, 12:44 PM
    Hello, for some reason under my R2 bucket, under setting the 'Public Access' option is not available. Even after adding custom domain public access in not enabled. Please help
  • i

    indiecodepreneur

    05/04/2023, 12:46 PM
  • k

    Karew

    05/04/2023, 12:47 PM
    Your custom domain says it’s active. That is one method of public access.
  • s

    Skye

    05/04/2023, 12:49 PM
    If you're expecting it to work like a file tree when you visit the domain, or show an index.html when you visit
    /
    , that doesn't happen
  • s

    Skye

    05/04/2023, 12:49 PM
    If you visit a specific asset in the bucket that'll work fine though
  • i

    indiecodepreneur

    05/04/2023, 12:56 PM
    That makes sense. I am a newbie hence the confusion. Thank you for your time @Skye and @Karew
  • j

    jessec

    05/04/2023, 2:26 PM
    Can a single bucket be bound to multiple workers?
  • k

    kian

    05/04/2023, 2:27 PM
    Yep
  • u

    Unsmart | Tech debt

    05/04/2023, 2:27 PM
    Yes it can
  • m

    miguelff

    05/04/2023, 3:58 PM
    We are experimenting with R2 as a replacement for S3 for some of our asset distribution, and I have a few questions that you might have good answers for! When you use a custom domain, and get default caching of assets implicitly, are you charged for the egress from the cache? It's unclear from the documentation in [1][2] if that's the case. Also related, does
    Cache-control
    metadata on the R2 objects affect said cache hit rate? (I'm assuming yes) And finally, when the cache is warm and there's a hit, do read operations served from the cache, account as class B operations over R2? Thank you so much! [1] https://developers.cloudflare.com/r2/buckets/public-buckets/#custom-domains [2] https://developers.cloudflare.com/cache/about/default-cache-behavior/#default-cached-file-extensions cc @Sid | R2
1...100810091010...1050Latest