Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/notjoemartinez/example-r2-multipart-upload
Cloudflare r2 multipart upload worker example using the aws s3 sdk
https://github.com/notjoemartinez/example-r2-multipart-upload
aws-s3 cloudflare cloudflare-r2 cloudflare-workers r2
Last synced: 21 days ago
JSON representation
Cloudflare r2 multipart upload worker example using the aws s3 sdk
- Host: GitHub
- URL: https://github.com/notjoemartinez/example-r2-multipart-upload
- Owner: NotJoeMartinez
- Created: 2024-05-06T00:42:08.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-12-12T02:22:29.000Z (about 2 months ago)
- Last Synced: 2025-01-13T01:40:29.384Z (25 days ago)
- Topics: aws-s3, cloudflare, cloudflare-r2, cloudflare-workers, r2
- Language: JavaScript
- Homepage:
- Size: 90.8 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Example worker + R2 multipart upload
See my [blog post](https://notjoemartinez.com/blog/cloudflare_r2_multipart_upload_s3sdk/) for more information.
This is a simple vanilla js example of a cloudflare worker
that uses the aws-sdk to upload multipart files to an R2 bucket, I've also included a simple html
file to demonstrate how to create a client side form that
uploads files using the worker.You might find this useful if you plan on uploading
files larger than 5GB to R2.### insallation
```
git clone https://github.com/NotJoeMartinez/example-r2-multipart-upload
cde example-r2-multipart-upload
npm install
npx wrangler dev
```**No authenction is implemented in this example.**