kotx / render

Cloudflare Worker to proxy and cache requests to R2
MIT License
384 stars 85 forks source link

how to upload #5

Closed rahulmanjhu2 closed 2 years ago

rahulmanjhu2 commented 2 years ago

hy there can u help me I'm new in this stuff I don't understand how to upload file larger then 300mb I checked the guide but If try to upload with guide then I have to change code every single time I upload file in r2 through Wrangler CLI if u have any suggestion to to upload file larger then 300mb then please let mr know..

ben476 commented 2 years ago

That's actually a bug in the Cloudflare Dashboard, right now it's not possible to upload files using wrangler. For now, you'll have to use something like rclone as shown here https://developers.cloudflare.com/r2/examples/rclone/

kotx commented 2 years ago

Yeah, this worker only supports reading from the bucket, not writing. If you want something for writing you might want to use the S3-compatible API (w/ rclone) or maybe even ShareX-R2-Cloudflare-Workers if you're using ShareX. Not sure what the upload limit is for workers though, might be less than 300MB if it's attached to a zone. But basically, this worker is for readonly requests only, and support for writing isn't planned.