When comparing Resumable.js vs Upload.js, the Slant community recommends Resumable.js for most people. In the question“What are the best JavaScript libraries for file uploading?” Resumable.js is ranked 2nd while Upload.js is ranked 7th. The most important reason people chose Resumable.js is:
Resumable.js splits each file into smaller chunks, this way if the upload of a chunk fails, uploading is retried until the procedure completes. This allows uploads to continue even after a network failure either locally or to the server. It also allows users to pause, resume and even recover uploads without even losing state.
Ranked in these QuestionsQuestion Ranking
Pros
Pro Fault tolerance for large files
Resumable.js splits each file into smaller chunks, this way if the upload of a chunk fails, uploading is retried until the procedure completes. This allows uploads to continue even after a network failure either locally or to the server. It also allows users to pause, resume and even recover uploads without even losing state.
Pro Good backend support
The backend can be found in many languages and for many frameworks.
Pro Free and open source
Resumable is completely free and distributed under the MIT license.
Pro No dependencies
It's very lightweight, and doesn't depend on libraries like jQuery, React, etc.
Pro Integrated cloud storage
Upload.js lets you add uploads to your site in an afternoon - even if you're on a tight deadline from the client, so don't have time to create an AWS account, setup buckets and URL pre-signing etc. You can just creat an Upload.io account, plug-in the API key, and have it all working within the hour.
Pro Progress events
Has progress events that make it easy to add progress bars. They also appear to be smoothed (i.e. 1%, 2%, ... 100%, rather than 7%, 89%, 100%).
Pro Large files
Apparently uses multipart uploads under-the-hood. After checking on the network inspector this seems to be true for larger files at least. Testing it with a ~300MB video it uploads fine.
Cons
Con Limited browser support
Resumable.js only supports Firefox 4+ and Chrome 11+.
Con Wont let you add files programmatically
You can add files by binding to a file input or a dropzone, but you cannot add files programmatically.
Con No free tier
There's a free trial, and there's a "free" API key, but it only stores files temporarily -- ok for hackathons or demos, but if you want to use this in a "real" application, you'll need to pay for an account. (It's $7/mo at the time of writing.)