What problem does it solve?
Implementing reliable, resumable large-file uploads in web applications is complex due to interrupted connections, token freshness, metadata mapping, and CORS requirements; this reference consolidates best practices and options for using @uppy/tus and tus-js-client to solve those issues.
Core Features & Use Cases
- Seamless cross-session resume via fingerprint storage and urlStorage integration for interrupted uploads.
- Fine-grained control over retries, chunking, concurrency, and per-request hooks for auth and response inspection.
- Metadata handling and CORS guidance to safely forward file metadata and avoid leakage.
- Use case: migrate an existing S3 presigned upload flow to tus for robust resumability and simpler server-side upload handling.
Quick Start
Initialize Uppy with the Tus plugin pointed at your tus endpoint, set allowedMetaFields and retryDelays, and enable removeFingerprintOnSuccess if you want to clean stale localStorage entries.