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

    chientrm

    03/27/2023, 2:33 AM
    playing audio via R2 is so smooth
  • h

    HardAtWork

    03/27/2023, 5:54 AM
    Some operations occur when you open the dashboard
  • r

    Raekon

    03/27/2023, 2:50 PM
    Copy code
    Current limitations
    
    Location Hints are only honored the first time a bucket with a given name is created. If you delete and recreate a bucket with the same name, the original bucket’s location will be used.
    Are you guys planning to fix this limitation when deleting and recreating the bucket eventually? That would be really nice
  • c

    cake

    03/27/2023, 8:00 PM
    Is it possible for me to create an API token granting access to a single bucket for R2? Right now it seems anyone who has access to any of my R2 tokens can access all buckets. This seems very dangerous.
  • e

    Erisa | Support Engineer

    03/27/2023, 8:12 PM
    Not possible currently, but coming soon
  • a

    Alexis

    03/27/2023, 9:30 PM
    Hi, I have a bunch of geojsons (roughly 300k) I would want to serve from a R2 bucket, what would be the best way to go about uploading them on R2 gzipped (or brotli'd if that's even possible) and have R2 return them correctly to a browser client? I seem to be having trouble with uploading through rclone as the R2 only responds with the incorrect content encoding/type
  • k

    kian

    03/27/2023, 9:37 PM
    It'll do that natively as long as you're uploading them with
    Content-Encoding: gzip
  • k

    kian

    03/27/2023, 9:37 PM
    Based on the client's
    Accept-Encoding
    header, it will be decompressed on-the-fly to plain-text or served as-is in gzip.
  • a

    Alexis

    03/27/2023, 9:41 PM
    I'm guessing I also have to pass the content-type on upload, right?
  • k

    kian

    03/27/2023, 9:42 PM
    Recommended, but not related to GZIP
  • k

    kian

    03/27/2023, 9:42 PM
    That's just good practice so browsers know what to do (download or render in tab, etc)
  • a

    Alexis

    03/27/2023, 9:43 PM
    Thanks, I'll try it out
  • a

    Alexis

    03/27/2023, 10:29 PM
    So, in case anybody stumbles in the same trouble as me down the line ``` rclone copy --progress --header-upload "Content-Type: application/json" --header-upload "Content-Encoding: gzip" 2023-03-27 r2inat:inat-geojsons/2023-03-27```is the way to go. Using
    --header
    over
    --header-upload
    results in authorization errors with rclone, files are now served correctly with the accept header from the request
  • c

    cake

    03/27/2023, 10:31 PM
    thank you
  • f

    Friday

    03/28/2023, 12:15 AM
    good morning prestiges, i'm quite sad not finding how to solve an issue i have with r2
  • f

    Friday

    03/28/2023, 12:15 AM
    i want to share file in r2 with an expiring link
  • f

    Friday

    03/28/2023, 12:16 AM
    but i prefer bucket level presigned urls
  • f

    Friday

    03/28/2023, 12:17 AM
    which if i am currect is a buck-based-presigned-link/file-name.ext
  • f

    Friday

    03/28/2023, 12:18 AM
    my idea is to generate the bucket link and fetch it when i need to get a file
  • k

    kian

    03/28/2023, 12:19 AM
    Sounds like you just want a normal presigned URL?
  • f

    Friday

    03/28/2023, 12:19 AM
    so i will save these presigned link and generate new one if it expires
  • f

    Friday

    03/28/2023, 12:19 AM
    okay, how do i go about it?
  • f

    Friday

    03/28/2023, 12:21 AM
    and i'd be happy if you explain to me how presigned URL works so i will better know how to solve the issue
  • k

    kian

    03/28/2023, 12:21 AM
    They’re implemented the same as S3 - https://developers.cloudflare.com/r2/api/s3/presigned-urls/
  • f

    Friday

    03/28/2023, 12:25 AM
    i have stumbled upon all docs available but still can't understand how to resolve this issue
  • f

    Friday

    03/28/2023, 12:27 AM
    i only need the presigned to download this files not for uploading them
  • c

    chientrm

    03/28/2023, 5:48 AM
    What is R2 sending me?
  • c

    chientrm

    03/28/2023, 5:49 AM
    Should I stop downloading now?
  • z

    zegevlier

    03/28/2023, 7:54 AM
    Where are you seeing that?
  • c

    chientrm

    03/28/2023, 8:22 AM
    I download a zip file via
    Cyberduck
    on MacOS Monterey 😐
1...965966967...1050Latest