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

I mean the code is working it returns a

I mean, the code ""is working"", it returns a signed URL which seems to be invalid

Please help out here

Please help out here. So I have moved alot of our data from S3 to using R2. Now everything is working, on django I have made a custom storage class, and some models are using it. While everything is working there is one small issue. I am trying to get the file size but when I try to get the file size I get the 400 head object error. And this happens on the endpoint url and not on the custom domain. How to force botocore to use the custom domain, else where its using custom domain as it is...so why here....

You can import render as a library do

You can import render as a library, do your own auth and then pass it off to R2 as render.fetch(req, env, ctx);

Is there any ETA for per bucket tokens

Is there any ETA for per-bucket tokens? We want our data suppliers to upload directly to R2 (can't use browsers because it's many TB per dataset), but for that to work we need tokens that only have write access to a specific bucket

If it returns it deleted if it throws an

If it returns it deleted if it throws an error it didn’t

Hi all am currently trying to perform a

Hi all, am currently trying to perform a multi file upload using cloudflare workers and R2 but I keep getting this error
EntityTooSmall: Your proposed upload is smaller than the minimum allowed object size.
EntityTooSmall: Your proposed upload is smaller than the minimum allowed object size.
...

I m getting this error for some requests

I'm getting this error for some requests in my Worker that handles a simple file upload: put: We encountered an internal error. Please try again. (10001) . Apparently the R2 put fails for some reason. It's only happening for ~0.02% of requests. Any idea what could be causing that?...

👋 I know folders are not a thing but

👋 I know folders are not a thing, but still, what would be the best way to delete by prefix? Use case: we will use folders to store "per customer" data, and ideally, we'd like to delete all files from a prefix quickly.

CORS

hey there folks, I'm trying to use Livewire's tmp upload feature and getting a 403 CORS error on the options call. I do have a CORS policy set to my public bucket. Is this supported right now in R2?

Fly.io <> R2

download speed from R2 to fly.io is sad 🤔

CORS :/

hi all - I had a function working yesterday to upload large files to a bucket. Come back today, and I'm getting CORS error. I've checked my CORS settings and my IP is included in the allowed, as well as the R2 API Token is a forever token. Any thoughts?

code

I'm following the example but I seem to get nested folders, is this intentional?

R2, S3

Assuming I code this to support R2, and have all the variables in my .env file, would changing them to AWS S3 be all I need to migrate if needed? Also is it possible to trigger events based on R2 uploads?

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