The r2.cloudflarestorage.com endpoints are just for S3. There is an undocumented REST API that Wrang
The r2.cloudflarestorage.com endpoints are just for S3.
There is an undocumented REST API that Wrangler uses, but it has limits like ~300 mb upload size, and it's slow as it has to go through Core/not processed at edge, plus it may change at any time and break since it's undocumented
Using one of the many s3 libs or rclone which use the s3 compat api would work well. You could write your own simple worker to use the Workers API, but would have to deal with multipart if files are bigger then 5 GB, which would be easier with a lib or rclone
There is an undocumented REST API that Wrangler uses, but it has limits like ~300 mb upload size, and it's slow as it has to go through Core/not processed at edge, plus it may change at any time and break since it's undocumented
Using one of the many s3 libs or rclone which use the s3 compat api would work well. You could write your own simple worker to use the Workers API, but would have to deal with multipart if files are bigger then 5 GB, which would be easier with a lib or rclone

