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

    PencilNavigator

    05/20/2023, 2:58 AM
    and web interface only supports file below 300MB which is much less then other providers (500MB)
  • p

    Pelps

    05/20/2023, 4:49 AM
    Does custom metadata work with the S3 SDK?
  • p

    Pelps

    05/20/2023, 4:51 AM
    Also great work on R2. I just hide in this Discord but I've been playing with R2 since beta last summer and I'm shocked it's already been a year.
  • p

    Pelps

    05/20/2023, 7:42 AM
    Were you able to fins a solution to this?
  • g

    GHOST

    05/20/2023, 5:35 PM
    For some reason when I try and upload a folder that's called accounts
    wrangler r2 object put
    fails:
    Copy code
    bash
    ⛅️ wrangler 3.0.0
    ------------------
    Creating object "accounts/test.txt" in bucket "mybucket".
    
    ✘ [ERROR] Failed to fetch /accounts/44321e1b7fbd29b56b65c1890a3bbee2/r2/buckets/mybucket/objects/accounts/test.txt - 404: Not found);
  • e

    Erisa | Support Engineer

    05/20/2023, 6:04 PM
    Sounds similar to https://github.com/cloudflare/workers-sdk/issues/2421
  • e

    Erisa | Support Engineer

    05/20/2023, 6:04 PM
    i dont think the api is a huge fan of things called accounts
  • g

    GHOST

    05/20/2023, 6:08 PM
    Ah yea that could be it
  • u

    1234qwerty

    05/21/2023, 7:42 AM
    There is no bucket in Australia, Singapore is the closest (fastest), depending the ISP.
  • u

    1234qwerty

    05/21/2023, 7:43 AM
    You could set a policy to block access from any location other than Australia using CF rules, or from a worker. But a VPN could always bypass this by using an Australian server. If R2 adds replication at some point your data could be replicated in multiple areas. If you need the data within Australia, try Oracle, as the first 10TB/month is free then it's $0.3/GB. Or DO spaces with $0.1/GB egress from SYD.
  • f

    fieu

    05/21/2023, 9:24 AM
    Yeah, I think it's still unsupported for now. I just use Cyberduck.
  • g

    guregu

    05/21/2023, 10:28 AM
    anyone else having trouble with newer versions of aws-sdk-go (v1) and R2? any release from v1.44.265 and onwards results in silently failed uploads for me 🤔 https://github.com/aws/aws-sdk-go/releases/tag/v1.44.265
  • d

    divby0

    05/21/2023, 12:06 PM
    How can I have public access for my r2 bucket on my local wrangler/state/r2? I developed my application with the r2.get binding, but that's many extra requests that I could simply save by putting the bucket to public. This probably works, but I don't know how to do it locally while developing
  • k

    Karew

    05/21/2023, 1:02 PM
    If you add a custom domain to your bucket in the bucket settings, all files will be publicly readable on that domain with no authentication
  • d

    divby0

    05/21/2023, 1:07 PM
    but it's just the files that are actually on the bucket. In my local wrangler setup, the files will never be uploaded there because I have them locally in
    .wrangler/state/r2
    then. But someone in the #799437470004412476 channel suggested to just serve those files with any file server which I'll try now
  • t

    Tenedini

    05/21/2023, 6:41 PM
    Is there a way to trigger my nodejs server when a file is uploaded to r2? I will be using pre-signed urls.
  • f

    frydim1

    05/21/2023, 7:18 PM
    how can I check that a bucket is really in the region i desire ?
  • f

    frydim1

    05/21/2023, 7:19 PM
    I just created a bucket using the web interface, selected eastern europe as the location hint, and rclone still says it's on us-east-1
  • f

    frydim1

    05/21/2023, 7:20 PM
    so it seems my "hint" is getting ignored 🤷‍♂️
  • k

    kian

    05/21/2023, 7:24 PM
    GetBucketLocation
  • k

    kian

    05/21/2023, 7:24 PM
    https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketLocation.html
  • k

    kian

    05/21/2023, 7:24 PM
    It should return the hint
  • f

    frydim1

    05/21/2023, 7:26 PM
    I don't know how to use that, i have always just used rclone to interact with r2
  • f

    frydim1

    05/21/2023, 7:27 PM
    Copy code
    <Error>
    <Code>InvalidArgument</Code>
    <Message>Invalid Argument: Authorization</Message>
    </Error>
  • f

    frydim1

    05/21/2023, 7:35 PM
    I even tried using a vpn to get a european ip address, went to the web interface and recreated the bucket...and rclone still says it's on us-east-1
  • k

    kian

    05/21/2023, 7:37 PM
    us-east-1
    doesn't 'exist' with R2, that's an S3 zone primarily so it likely just defaults to that
  • k

    kian

    05/21/2023, 7:38 PM
    You can use or any of the SDKs in to do a
    ?location
    call
  • e

    Erisa | Support Engineer

    05/21/2023, 7:59 PM
    i usually use aws cli https://discord.com/channels/595317990191398933/940663374377783388/1100486682593214554
  • a

    altryne

    05/21/2023, 8:02 PM
    I have this weird thing, not sure if this only happens to me? direct public links to r2 files, work on desktop, but don't work on IOS, no matter which browser (safari, chrome, brave) Both on wifi and on 4g. Any.. advice how to test this and what could be the issue?

    https://cdn.discordapp.com/attachments/940663374377783388/1109934191807823953/IMG_36532B8B4696-1.jpeg▾

  • a

    altryne

    05/21/2023, 8:02 PM
    Here's an example link but it happens with all R2 links it seems: ||https://pub-0a8ccdbc8ffd407ea09cfa21fdcc26ed.r2.dev/000aabe3c4602d64c3a973e56321e56e/000aabe3c4602d64c3a973e56321e56e.mp4||
1...103510361037...1050Latest