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: 4 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 (7 months ago)
- Default Branch: main
- Last Pushed: 2024-05-08T08:52:42.000Z (7 months ago)
- Last Synced: 2024-05-09T04:26:05.515Z (7 months ago)
- Topics: aws-s3, cloudflare, cloudflare-r2, cloudflare-workers, r2
- Language: JavaScript
- Homepage:
- Size: 87.9 KB
- Stars: 1
- 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 upload
large files to a R2. 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.**