Skip to content

edsoncunha/chunked-file-upload-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sample application for chunked file upload

Build Status License Apache2

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.

Client

Requirements:

To install dependencies and run:

cd client
npm install
node app.js

Then browse to localhost:3000.

Server

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

Suggestion for test

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

Acknowledgements

This sample takes Resumable.js and Swagger code samples as a frame of reference.

About

A demo for uploading chunked files by using HTML 5 file API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors