Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can Cloudflare R2 be supported ? #199

Open
Lua12138 opened this issue Dec 29, 2023 · 0 comments
Open

Can Cloudflare R2 be supported ? #199

Lua12138 opened this issue Dec 29, 2023 · 0 comments

Comments

@Lua12138
Copy link

R2 supports a subset of the S3 API, with a specific list of API compatibility: https://developers.cloudflare.com/r2/api/s3/api/

Now after adding the R2 storage bucket and uploading a file, it sends a request like this:

PUT /OBJECT_KEY?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=8138db3fb539d4af367888cf0518af0f%2F20231229%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20231229T021523Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=content-type%3Bhost%3Bx-amz-acl&X-Amz-Signature=a801f2b2fd37860f1ac01b6e49df3c0ec33d5c672bae20d319d8c75767926090
HOST: BUCKET_NAME.R2_ACCOUNT_ID.r2.cloudflarestorage.com
...Something else headers

And the R2 returns http code 501 with no http content.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant