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

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 ......

Hello, this is Vijay from Invent Educare

Hello, this is Vijay from Invent Educare, We are using cloudflare R2 storgae and upload files via S3 api / CLI - from 14th of June the upload from application seems not working perfectly.. some time it is uploading, sometimes not, sometimes takes an hour to upload a file, we have .Net application from where we are uploading file... is there any issue going on with the upload functionality..? we are stuck - we are fully dependent on cloudflare,... and our client's are not able to upload files since last 4 days.. 😦...

getting 500 internal server error when uploading to R2 using presigned URL

Hello, I am getting 500 internal server error when uploading to R2 using presigned URL. Can someone help...

Even i reported this but cloudflare

Even i reported this but cloudflare ignored it by saying it's my ISP or server issue -__-

Hi guys,

Hi guys, when I want to create a bucket, it display that there was a problem creating your bucket, please try again later. I want to konw how to solve it....
No description