An example to demonstrate chunked file uploading to a Java server. The client uses Resumable.js, which in turn uses HTML 5 file API to generate the chunks.
A .NET Core version is also available: https://github.com/edsoncunha/chunked-file-upload-csharp.
Requirements:
To install dependencies and run:
cd client
npm install
node app.js
Then browse to localhost:3000.
To install and run:
cd server
./mvnw package jetty:run
Then browse to localhost:8002.
...
Or simply cross your fingers and run both at once with:
./run_all.sh
Generate large files
dd if=/dev/urandom of=file.tmp bs=1M count=1024 #creates a 1GB file
Calculate SHA1
sha1sum file.tmp
Upload file.tmp, download it from server and check whether the checksums match
This sample takes Resumable.js and Swagger code samples as a frame of reference.