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

content length / content type header enforcement on pre-signed urls

You can find it by searching for createPresignedPost. The rule you are looking for is a value you add to the condition array like this: - ["content-length-range", 1024, 1024*1024] to restrict the upload to files between 1ko and 1mo...

Getting CORS errors trying to upload to

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

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

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

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?

Pages & R2

It is third day and am still struggling to implement a simple mechanism for uploading a file using pages and functions. Good news is that I have progressed a little since two days ago. Everything seems to work locally when I test file uploading from postman but not working on internet when I deploy the app. What could be a probable reason for this bug? Attached are screens of code snippets both for handling the submit event on the client and processing the request in the function. Env variable i...
No description

Hi

Hi this bug could only reproduce by upload the exact files I uploaded. because it not caused by 按照RJ号命名的作品 but the files in it....