
Resumable.js for Chunked and Resumable File Uploads
Resumable.js splits large files into manageable chunks, uploads them independently, and picks up exactly where it left off after any interruption. This documentation hub covers everything from initial setup to production-grade deployment - chunking strategies, retry logic, server receivers, CORS, caching, and operational best practices.
From File Selection to Complete Upload
Resumable.js handles the complexity of chunked uploads so your application code stays clean. Here is what happens under the hood during a typical upload.
1. Slice
File is divided into configurable chunks using File.slice()
2. Upload
Chunks are uploaded in parallel with configurable concurrency
3. Retry
Failed chunks retry with a configurable fixed delay
4. Resume
After interruption, only missing chunks are re-sent
Choose, build, troubleshoot
Compare JavaScript file upload libraries by UI and backend, then compare S3, R2 and B2 for uploads with your workload.
Build from the basic uploader, check byte limits with the upload planner, and record enforcement tests in the security checklist.
The upstream library is maintained in the Resumable.js repository.
What Makes Chunked Uploads Different
Traditional file uploads send the entire file in a single HTTP request. This works fine for profile pictures and small documents, but breaks down quickly with larger files. Transport protocols can recover dropped packets. A failed HTTP request may require resending its body when the application has no resumable state. A server timeout at the proxy layer means the user sees a cryptic error. Chunked uploading changes the failure model entirely.
With Resumable.js, a 2 GB video file becomes (at the default 1 MB chunk size) roughly 2,000 small, independent uploads. Each chunk carries metadata identifying which file it belongs to and which position it occupies. The server stores chunks independently and assembles the final file once all pieces have arrived. If the connection drops after 1,500 chunks, unacknowledged in-flight chunks may need retrying - and when the user reconnects, Resumable.js queries the server to find out which chunks already exist and skips them.
This is an independent documentation resource for the open-source Resumable.js library. The client and receiver share responsibility for upload correctness. Compare implementation requirements before choosing a component.
Jump Into the Documentation
Built for Real Networks
The reviewed chunk planner is checked against resumablejs 1.1.0. Numerical fixtures cover provider allowances and byte boundaries, and local session fixtures exercise ownership, retries and quarantine transitions. Cloud architecture fragments state their integration requirements.
File uploads are one of those features that seem simple until they are not. The gap between a working demo and a production-ready implementation is wider than most teams expect. This documentation exists to close that gap - providing the operational detail, configuration guidance, and practical examples that turn a chunked upload prototype into something you can deploy with confidence.
Choose chunk sizes, concurrency and timeouts against your receiver limits and file sizes. Start with the documentation overview to decide what the browser handles and what your receiver must provide.
If you are also evaluating the tools your team uses to write this kind of infrastructure, see the following best ai coding tools 2025/2026 comparison , which covers the top tools available giving useful pointers for teams building production upload systems.