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

Getting CORS errors trying to upload to

Getting CORS errors trying to upload to a presigned url. ```[ { "AllowedOrigins": [ "*"...

Right Multipart uploads should work

Right. Multipart uploads should work, although ListParts comes to mind as something that isn’t supported yet, but should be pretty soon.

Since they lean on ffmpeg allowing you

Since they lean on ffmpeg - allowing you to split by time (6s - 12s segments) is likely to be a straightforward improvement on their side. 6s of 15Mbps 2160p = 11.25MB.

One of the queries that Synology makes

One of the queries that Synology makes results in a NextMarker loop - forever

```

``` 2023/02/20 16:55:05 DEBUG : rclone: Version "v1.53.3-DEV" starting with parameters ["rclone" "copy" "planet.pmtiles" "r2:/protomap" "-P" "--s3-upload-concurrency=3" "-vv"] 2023/02/20 16:55:05 DEBUG : Creating backend with remote "planet.pmtiles" 2023/02/20 16:55:05 DEBUG : Using config file from "/home/alastair/.config/rclone/rclone.conf" 2023/02/20 16:55:05 DEBUG : fs cache: adding new entry for parent of "planet.pmtiles", "/mnt"...

Configure CORS · Cloudflare R2 docs

Hey all, I've just pushed out a release that finally, FINALLY exposes a UI in the dashboard to configure your bucket's CORS policies! You'll find it on your bucket's Settings page. I know this has been a pain point for people who just want to use a public bucket without having to deal with the S3 API. We're eager to hear what people think of it, and if you have ideas for changes/improvements. I'll create a thread for this so we don't lose your suggestions to time Also accompanying this UI is a new docs page about CORS where suggestions are welcome too: https://developers.cloudflare.com/r2/learning/cors...

Hey we tested R2 uploads with same

Hey, we tested R2 uploads with same instance compared to S3 and DO Spaces, R2 seems significantly slower (about 500ms to S3 and DO's 100ms) is there any way to get around this?

Heya I m trying to use pre signed POSTs

Heya, I'm trying to use pre-signed POSTs with R2 to have users directly upload images to my bucket. Thanks to some posts here I have the CORS portion working fine, but when now when I attempt the upload I get back a 400 with Invalid Argument: Authorization. Am I supposed to be putting something in the Authorization header? Appreciate any help, will post the entire request log in a thread

Because as Kian mentioned the SPA does

Because as Kian mentioned the SPA does not have a server so the cors approach would never really work as the 'client' can't really respond (if i got it correctly)

Has there been any R2 releases within

Has there been any R2 releases within the past week that change the SigV4 side? I don't actually think aws4fetch's presigned URLs work anymore.

You can store and serve anything you

You can store and serve anything you want on R2. There are some automatic mitigations in place specifically for video that might hit you so you could message support to try and ensure you wont get hit by that 🤷

R2 errors

Interesting 🤔 not sure if anyone else monitors a lot of data like me when it comes to R2 but if anyone does just curious if you also notice starting 12/13 the error rate as risen a bit from what it used to be

Presigned POST no

Presigned POST, no Presigned PutObject, yes...

There ll be a debug or logger option for

There'll be a debug or logger option for basically all of the SDKs

A significant number of users are

A significant number of users are reporting they can't reach one of my R2 connected domains. I had some of these people visit https://www.cloudflare.com/cdn-cgi/trace and almost all of them are in colo=GRU or colo=BSB. Has anything happened in the Brazil region recently with Cloudflare or R2?

it will fit because that zone is

it will fit because that zone is enterprise, but i dont think it is because its a .bin, but i will check now

Our prod code got this unexpected R2

Our prod code got this unexpected R2 error for the first time ever in the last hour or so:
Warning: Error executing "GetObject" on "https://SNIP.r2.cloudflarestorage.com/downloadprod/SNIP/SNIP.png"; AWS HTTP error: Client error: GET https://SNIP.r2.cloudflarestorage.com/downloadprod/SNIP/SNIP.png resulted in a 499 Client Error response (client): 499 Client Error - <?xml version="1.0" encoding="UTF-8"?><Error><Code>Unexpected</Code><Message>Client Disconnect</Message></Error>
Warning: Error executing "GetObject" on "https://SNIP.r2.cloudflarestorage.com/downloadprod/SNIP/SNIP.png"; AWS HTTP error: Client error: GET https://SNIP.r2.cloudflarestorage.com/downloadprod/SNIP/SNIP.png resulted in a 499 Client Error response (client): 499 Client Error - <?xml version="1.0" encoding="UTF-8"?><Error><Code>Unexpected</Code><Message>Client Disconnect</Message></Error>
...

R2 has no notion of snapshots right now

R2 has no notion of snapshots right now, and also it's all hot file storage (which is more expensive). It's probably not a good place to put backups you infrequently access

What does the R2 upload code look like

What does the R2 upload code look like?