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

    Crazy Rabbit

    04/16/2023, 4:55 PM
    Only in some rare cases and even then speed of download isn't important.
  • c

    Crazy Rabbit

    04/16/2023, 4:56 PM
    Something like AWS has.
  • m

    Mattèo

    04/17/2023, 12:01 AM
    Hello ! I have issue with presigned upload urls and CORS. I got a CORS issue when I try a HTTP PUT request on the presigned URL. Here is some useful info :
    Copy code
    Access to fetch at 'presignedurl' from origin 'http://localhost:3000' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
    Copy code
    [
      {
        "AllowedOrigins": [
          "localhost:3000"
        ],
        "AllowedMethods": [
          "GET",
          "PUT"
        ],
        "AllowedHeaders": [
          "*"
        ]
      }
    ]
    Does someone know how to solve this issue ?
  • s

    Sid | R2

    04/17/2023, 1:59 AM
    Make sure you add an “http://“ in front of your AllowedOrigins!
  • o

    oc

    04/17/2023, 3:43 AM
    hi guys, How can I solve this problem? I cannot get record of R2 in R2 Page.
  • o

    oc

    04/17/2023, 3:43 AM
    or where is R2 configuration ?
  • c

    Chaika

    04/17/2023, 3:46 AM
    R2 Buckets are account-level, ex Account -> R2 (Magic link to that bucket: https://dash.cloudflare.com/?to=/:account/r2/default/buckets/xiaoli-dev/settings)
  • c

    Chaika

    04/17/2023, 3:46 AM
    Under Settings -> Public Access, you can delete R2 custom domains
  • m

    Maurice

    04/17/2023, 3:49 AM
    someone forgot to remove the file 👀
  • o

    oc

    04/17/2023, 3:50 AM
    Thanks, I hope so get this feature, but, see screenshots.
  • c

    Chaika

    04/17/2023, 3:52 AM
    Is that custom domain really old/from the beta, and you deleted the bucket also then? There used to be a bug that caused that, but iirc it should be fixed now
  • o

    oc

    04/17/2023, 3:52 AM
    yes, custom domain and then delete bucket.
  • o

    oc

    04/17/2023, 3:53 AM
    fixed now ? maybe not yet and what's next action ? thx.
  • o

    oc

    04/17/2023, 3:54 AM
    this problems have been impacted DNS settings.
  • o

    oc

    04/17/2023, 3:55 AM
    and cannot added A/CNAME records .
  • c

    Chaika

    04/17/2023, 3:56 AM
    https://community.cloudflare.com/t/cannot-delete-r2-custom-domain/421058/7 Looks like Sid was just asking people to post their Account Id in here & the custom domain, and they can manually clean up any old broken domains Your account id is the string in front of r2.cloudflarestorage.com, ex. b9e510810e1e12fcd40826d266a1fb12 (They are fine to be made public, they're purely random identifiers)
  • o

    oc

    04/17/2023, 4:01 AM
    Thanks, is there any R2 team members here?
  • o

    oc

    04/17/2023, 4:12 AM
    @Sid | R2 would you like to check this problem? thanks
    s
    e
    • 3
    • 41
  • n

    notorca

    04/17/2023, 5:09 PM
    Looks like R2 put doesn't support Blob as parameter. Code like:
    Copy code
    const blob = new Blob(['Hello, world!'])
    await env.BUCKET.put('test', blob)
    return new Response('passed')
    throws an
    Network connection lost.
    error
  • k

    kian

    04/17/2023, 5:15 PM
    Use blob.stream() - but yes, it should just work with Blob/File objects
  • n

    notorca

    04/17/2023, 5:17 PM
    blob.stream() works. It was a bit of surprise to get this exception on blob upload
  • c

    Cоlе

    04/18/2023, 12:12 AM
    Is the HTTP authentication for a bucket under a custom domain the same as with aws? I can't seem to get anything but a 401
  • c

    Cоlе

    04/18/2023, 12:16 AM
  • s

    Sid | R2

    04/18/2023, 8:31 AM
    Are you trying to use the S3 API via the custom domain? That’s not going to work, a custom domain is just an alternative way to open up (unauthenticated) GET access to your bucket (this is useful if you want to link directly to objects in your bucket, like images in a blog post) The reason you’re getting a 401 is likely because you are trying to perform a PUT. To upload objects, even in a public bucket, you must use the S3 API (either authenticated or using presigned URLs), or the Workers bindings API
  • s

    Sid | R2

    04/18/2023, 8:34 AM
    In general, the *.r2.cloudflarestorage.com domain exposes the S3 API, and the *.r2.dev domain exposes the public API. You can attach a custom domain to make the public API accessible from it as well (you’d do this if you want control of the domain so you can add a CDN and/or cache in front of your objects)
  • f

    fire starttt

    04/18/2023, 9:17 AM
    I want to extract all the data images inside R2, to save locally in my computer how can I acheive this?
  • h

    HardAtWork

    04/18/2023, 9:20 AM
    https://rclone.org is probably the easiest way
  • Checking object integrity - Amazon Simpl...
    p

    phantom

    04/18/2023, 9:54 AM
    Hello 👋, I was wondering if there are any plans to make multipart-uploaded files etags to be deterministic? (Preferrably calculated with an algorithm outlined here: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html#large-object-checksums ) I'm trying to use etags to verify that the files I have in the bucket are what I expect them to be, but etgas for multipart uploads are seemingly random so I can't use them for that purpose. But it seems that S3 does have deterministic etags even in that case. Unless I'm not supposed to use etags for this but then is there any way for me to validate the file other than downloading it and comparing with expected file contents?
    s
    • 2
    • 14
  • I wanted to invite few member to our
    t

    TubbyStubby2

    04/18/2023, 10:05 AM
    I wanted to invite few member to our organization but want to give them access only for R2. I can't find any R2 related role under Account Scoped Roles in Invite Members. Is there any way do this?
    s
    • 2
    • 1
  • o

    oldmanmeta

    04/18/2023, 3:15 PM
    Hi - I'm looking for some advice here please. I have an exe distributable in github and I'd like to have that hosted with a page. I'm thinking pages could no doubt handle the page side of that equation, but what about the exe in some form of CDN/Cache? I see that the Cache can store exe files, but it looks to have a 500Mb limit, which isn't enough. Do I multi-part push the exe into R2 and serve it from a worker? Any thoughts here would be really appreciated.
1...993994995...1050Latest