Skip to content

Conversation

@Santiago868
Copy link

This PR, adds support for Cloudflare R2 buckets within the file storage file-storage package. It uses Cloudflare R2 bindings and implements FileStorage. It has get, set, put, has, remove which is delete as well as list. I did not include support for Multi Part Uploads.

Included some tests inside r2-file-storage.test.ts for these I made a MockR2Bucket and the tests tried to copy what was done for local-file-storage.

@MichaelDeBoey MichaelDeBoey linked an issue Nov 5, 2025 that may be closed by this pull request
@MichaelDeBoey MichaelDeBoey changed the title Add Cloudflare R2 support in file storage feat(file-storage): add Cloudflare R2 support Nov 5, 2025
@jacob-ebey jacob-ebey requested a review from mjackson November 6, 2025 19:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cloudflare R2 support in file-storage

2 participants