jw-12138 / r2-uploader

Web Interface for Cloudflare R2
https://r2.jw1.dev
MIT License
109 stars 28 forks source link

Multipart file support (client and server) && Docker support #5

Closed spurin closed 1 month ago

spurin commented 1 month ago

With some experimentation, I've been able to implement working multipart support (see the README.md for the server implementation and CustomUploader.vue for the client).

The following test file is 321MB, this was split into 3 x 100MB chunks, uploaded individually and then merged accordingly by the worker.

image

Please treat this as as a proof of concept vs a merge request and make use of the changes as you see fit, or as a reference to a working implementation 🚀

I've also for convenience, included a Dockerfile for development/local running and instructions on how to use ngrok, to work around local cross origin issues.

Disclaimer: I may have deviated from your code standards, approaches and there is a risk I may have broken something. In testing it seems fine but please check thoroughly 😄