Cloudflare Developers

CD

Cloudflare Developers

Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news

Join

That looks like a compatibility issue

That looks like a compatibility issue with running the S3 SDK on Workers, not an R2 compat issue

CORS error coming on first request, subsequent requests works

Hi team, I am using R2 to store some assets (video files) for my app. I have setup a domain for this bucket - reports.empirical.run When I access this from the same origin (let's say https://reports.empirical.run/<some-path>/<some-path>/index.html), I am immediately able to play the video. ...

1104 is a weird error to get, I would

1104 is a weird error to get, I would guess it's related to using python yea. Did you try using JS? Python's still in a beta and no packages or anything, you could try reporting that w/ some more info in #🐍python-workers but I would guess way unrelated to r2. That median cpu time is super high too, but I suppose that's just python. I found one interesting ref that 1104 can be hitting startup cpu time, possible with python...

i know u said don’t ask why but why not

i know u said don’t ask why but why not just use cloudflares caching? its free for r2 usage

What's the account ID?

What's the account ID?

R2 programmatically create token

You need to generate via the R2 Tab -> "Manage R2 API Tokens"

Hey there!

Hey there! I've been trying to use R2 as an drop-in replacement to S3, but I've been running into some troubles. Intermittently my multipart uploads fail with the following error SignatureDoesNotMatch. I've tried to reproduce this locally and it seems like it happens when I simulate a temporary network disconnect / connect to a vpn. If I try the same reproduction steps with S3, the bug never occurs. Its making using r2 in any s3 compatible project quite flakey as a result. Any help would be greatly appreciated, please lmk if there is any more details I can provide that would help!...

To confirm, what does your `wrangler.

To confirm, what does your wrangler.toml look like?

I'm not a Cloudflare employee but the

I'm not a Cloudflare employee but the language they use in the tos blog is pretty clear:
These services are explicitly designed to allow customers to serve non-HTML content like video, images, and other large files hosted directly by Cloudflare.
It's not hosted directly in this case. Will they take action on you for you? Eh, espec if you're not using a lot of bandwidth, the terms are more focused on big abusers and such. I would ask this though: Why not have your custom app return a presigned url if you're trying to do access enforcement? The way you described would entirely depend on your app's bandwidth/connection/make it a bottleneck for all requests...

Then no. Caching isn't available on the

Then no. Caching isn't available on the S3 API

Hello, everyone I have R2 bucket inside

Hello, everyone I have R2 bucket inside and i have two directories, i want to upload an image into the profile-pictures directory in the R2 bucket I tried this but it only uploading into the main bucket, not inside the "profile-pictures" directory let key = "profile-pictures/profilepic" + await generateToken(5) await c.env.BC.put(key, payload.file);...

still getting `403 Forbidden` even after

still getting 403 Forbidden even after re-recreating API keys and not getting cors errors anymore, really not sure what's going on 😵‍💫

anyone succeeded in acquiring temporary

anyone succeeded in acquiring temporary access credentials?

POST Policy - Amazon Simple Storage Serv...

AWS S3 seems to have a feature called POST Policy (see: https://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-HTTPPOSTConstructPolicy.html#sigv4-ConditionMatching) which can be used when making signed urls for file uploads. R2's documentation does not really affirm or deny compatibility with this feature. Does anyone know if R2 supports the feature described in the link above? Such a feature would allow CF R2 to independently run pre-specified assertions on the request as part of the upload tran...

thats happen

thats happen
No description

I get the following error on the S3

I get the following error on the S3 endpoint and cannot connect ``` $ /usr/bin/curl -v https://0a6a3d9311dd2981c9a598ee47b70fea.r2.cloudflarestorage.com/test * Host 0a6a3d9311dd2981c9a598ee47b70fea.r2.cloudflarestorage.com:443 was resolved. * IPv6: 2606:4700::6812:85a, 2606:4700::6812:95a...

Is anyone using `"@aws-sdk/client-s3"` ?

Is anyone using "@aws-sdk/client-s3" ? I currently do: ```js...

Hey guys I'm `PUT`ing into my R2 bucket

Hey guys I'm PUTing into my R2 bucket with some customMetadata -- I can see that the PUT command does return the metaData. But when I refresh the data using LIST -- the returned objects do not contain the customMetadata. I confirmed in R2 dashboard that the object does have the customMetadata. Looks like the LIST method does not retrieve the metadata? I am referencing R2Object.customMetadata. See screenshots of api response to my worker functions...
No description

anyone from cf could help with the r2

anyone from cf could help with the r2 issue? it seemed we cannot post to support for r2 issue, while it suggests to post here ......