Skip to content

Cloudflare r2 multipart upload worker example using the aws s3 sdk

Notifications You must be signed in to change notification settings

NotJoeMartinez/example-r2-multipart-upload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example worker + R2 multipart upload

See my blog post 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.

About

Cloudflare r2 multipart upload worker example using the aws s3 sdk

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published