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

    cake

    02/21/2023, 3:19 AM
    Is there any way around the restriction of an r2 bucket must be empty in order to delete it? I basically need to create a script to delete everything in order to delete the bucket, which is insane to me. The browser only lets me delete 25 items at a time.
  • c

    cole | data

    02/21/2023, 3:24 AM
    https://rclone.org/commands/rclone_purge/
  • k

    Karew

    02/21/2023, 4:01 AM
    It would be really nice if your account's R2 endpoint was also shown/copyable on the R2 token generation page, since you need all three together 99% of the time
  • p

    PLUG

    02/21/2023, 7:04 AM
    Hello, I want to register a custom domain in R2 and only download files through presigned url. However, if i register a domain, it seems that anyone can download files like public access even though i have not allowed public access. Is this what it used to be? For example, when https://example.com is a custom domain, https://example.com/test.zip should return an error, but the file is downloaded.
  • d

    Dhawal

    02/21/2023, 7:07 AM
    Hi, I’m using CF reserve feature for one of our enterprise accounts. I noticed the resource gets cached across the edge (for example, the first response for the resource from SJC is miss, but the request from ORD is HIT since SJC resource was cached). I noticed, if I don’t hit the same resource and stay idle for10 minutes, it gets expires. Why it is purging the cache within 10 minutes? I was expecting to stay there untill I explicitly purge. Am I missing something here? I’m using Fetch API for caching https://developers.cloudflare.com/workers/examples/cache-using-fetch/ CF object value is let cf = { cacheKey: cacheKey, //cacheTtlByStatus: { '200-299': 2419200 }, //30 days, cacheTag: cacheTag, cacheTtl: 2592000, cacheEverything: true, };
    • 1
    • 1
  • h

    HardAtWork

    02/21/2023, 7:20 AM
    Yes, this is intended. The public access button is intended for toggling access to your r2.dev domain, not a custom domain. Custom domains are always public, though you can apply firewall rules/Workers on top to restrict access
  • p

    PLUG

    02/21/2023, 7:26 AM
    Is there any way not to use workers? Or are there any plans to release the ability to set up public access on custom domains?
  • p

    PLUG

    02/21/2023, 7:30 AM
    The reason I want to use a custom domain is to set a rate limit on the domain to prevent malicious users from making huge requests to the presigned url. Are there any other ways to prevent this?
  • h

    HardAtWork

    02/21/2023, 7:57 AM
    You can use an Unmetered Rate Limiting rule, but that wouldn't be authenticating requests, just rate-limiting them.
  • z

    Zeblote

    02/21/2023, 7:58 AM
    use hmac firewall rule
  • z

    Zeblote

    02/21/2023, 7:59 AM
    it is basically the same as a presigned url except you can use it anywhere on your site
  • p

    PLUG

    02/21/2023, 11:44 AM
    I tried to keep looking for other methods, but eventually decided to use the worker. I think I'm going to upload and download files, but as far as I know, the worker charges according to the number of requests. Is there any additional charges or restrictions on the free plan depending on the size of the upload and download file?
  • e

    Erisa | Support Engineer

    02/21/2023, 11:50 AM
    free plan can only handle 100mb request bodies which limits the amount of uploading you can do through a worker before having to do multipart
  • p

    PLUG

    02/21/2023, 12:32 PM
    Is there a 100MB limit per request?
  • k

    kian

    02/21/2023, 12:40 PM
    Depends on your zone
  • k

    kian

    02/21/2023, 12:40 PM
    For free plans then it's like Erisa said, 100MB
  • e

    Erisa | Support Engineer

    02/21/2023, 1:23 PM
    and that's only for upload
  • l

    Leo

    02/21/2023, 1:35 PM
    it appears that a super slurper made its way into public beta
  • e

    Erisa | Support Engineer

    02/21/2023, 1:43 PM
    R2 Migrator 🤔
  • p

    Plotzes

    02/21/2023, 1:55 PM
    👀
  • k

    kian

    02/21/2023, 2:00 PM
    slurp
  • p

    Plotzes

    02/21/2023, 2:17 PM
    😋
  • z

    Zeblote

    02/21/2023, 2:19 PM
  • z

    Zeblote

    02/21/2023, 2:19 PM
    how nice of them to also let me run half a migration at a time
  • u

    Unsmart | Tech debt

    02/21/2023, 3:34 PM
    interesting it only migrates files up to 10GB
  • e

    ettorebigm

    02/21/2023, 4:01 PM
    Hi guys, can R2 Public Bucket be configured to be available to anyone only for the download, while allowing upload only through an authorization Worker?
  • s

    Skye

    02/21/2023, 4:05 PM
    A public bucket is always readonly
  • s

    Skye

    02/21/2023, 4:05 PM
    to upload to it, people would need a presigned URL that you made
  • g

    golyalpha

    02/21/2023, 4:27 PM
    To be fair, 10GB is not small
  • u

    Unsmart | Tech debt

    02/21/2023, 4:27 PM
    It is quite small to the 5TB allowed 😛
1...892893894...1050Latest