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

    Skye

    04/15/2023, 9:28 AM
    That is to a worker, not to a presigned URL
  • c

    chientrm

    04/15/2023, 9:29 AM
    I'm confused why does it state just at the end of a presigned url guide 😅
  • s

    Skye

    04/15/2023, 9:32 AM
    The title of that section is "Presigned URL alternative with Workers"
  • o

    oldmanmeta

    04/15/2023, 3:56 PM
    hello - I was about to connect a domain that I have to an R2 bucket. I was trying to find an answer in the docs, but nothing jumping out at me. Should I be creating a sub domain to hook up to this bucket, and sub domains for each bucket, or can the same root domain be connected to any bucket?
  • k

    kian

    04/15/2023, 3:58 PM
    You can only have a single (sub)domain associated to a single bucket
  • k

    kian

    04/15/2023, 3:58 PM
    so you can have
    cdn1
    cdn2
    cdn3
    go to different buckets if you want
  • o

    oldmanmeta

    04/15/2023, 4:26 PM
    perfect
  • o

    oldmanmeta

    04/15/2023, 4:26 PM
    thanks for that
  • o

    oldmanmeta

    04/15/2023, 5:20 PM
    Sorry for possibly a stupid question - I just noticed that I can put a file into a folder in an R2 bucket (total noob at this) - is there a limit to how deeply nested the folders could be?
  • e

    Erisa | Support Engineer

    04/15/2023, 5:21 PM
    Theres no documented limit, so if there is one its probably so big nobody has tried yet
  • e

    Erisa | Support Engineer

    04/15/2023, 5:21 PM
    (Unless the name is included in metadata size?)
  • s

    Skye

    04/15/2023, 5:21 PM
    Also worth noting that folders aren't a thing in R2, it's just a long file name
  • o

    oldmanmeta

    04/15/2023, 5:22 PM
    interesting
  • o

    oldmanmeta

    04/15/2023, 5:23 PM
    So I was just about to try and send four files and folders to test/folder1/sub1/test.txt test/folder2/sub1/test.txt test/folder1/sub2/test.txt test/folder2/sub2/test.txt
  • o

    oldmanmeta

    04/15/2023, 5:26 PM
    in the dashboard it correctly nests all those folders
  • o

    oldmanmeta

    04/15/2023, 5:27 PM
    I see what you mean - that's a great point
  • o

    oldmanmeta

    04/15/2023, 5:28 PM
    that answered my next question about it being a quasi folder - thanks for that!
  • o

    oldmanmeta

    04/15/2023, 5:30 PM
    also explains why you can't delete from a 'folder' in the dashboard
  • o

    oldmanmeta

    04/15/2023, 5:44 PM
    But if you uncheck this bad boy, then it shows everything as the true filename and allows the delete:
  • o

    oldmanmeta

    04/15/2023, 5:45 PM
  • o

    oldmanmeta

    04/15/2023, 5:46 PM
    There is a small user experience bug in the dashboard - if I delete a 'nested' file in the prefix view, when I click back to the parent folder, the Objects show as empty and I need to refresh the page again (hope that makes sense)
  • s

    Sid | R2

    04/15/2023, 7:31 PM
    Oh I can take a look at that on Monday. FWIW there’s also a Refresh button next to the table so you don’t have to reload the whole page
  • o

    oldmanmeta

    04/16/2023, 3:15 AM
    The refresh button disappears - you get the same display as when you first create a bucket showing no objects.
  • o

    oldmanmeta

    04/16/2023, 3:17 AM
    Can someone clarify the storage limits on R2 for me please. I read in the docs, 1000 buckets per account, but it also states unlimited storage. When I grab the bucket object, it tells me that I have a limit of 1000 keys
  • o

    oldmanmeta

    04/16/2023, 3:17 AM
  • k

    Karew

    04/16/2023, 4:02 AM
    MaxKeys
    is echoing back your S3 library's parameters, 1000 object keys is the maximum the library can request at a time when listing your files.
    IsTruncated
    is incidating if there are more pages beyond this one. Buckets theoretically have no limit on the number of objects you can store
  • k

    Karew

    04/16/2023, 4:03 AM
    So to re-phrase
    MaxKeys
    is just a pagination parameter
  • o

    oldmanmeta

    04/16/2023, 5:24 AM
    Thanks for the clarification on all of that. Pagination makes absolute sense. Cheers
  • c

    Crazy Rabbit

    04/16/2023, 4:53 PM
    Does Cloudflare plan to provide archives? (Cheaper long term storage that doesn't need to be accessed for years)
  • c

    Crazy Rabbit

    04/16/2023, 4:54 PM
    For example accountants store few TB of data that is old at least 5 years and does not need to be accessed.
1...992993994...1050Latest