upload library

Upload pipeline: chunked uploads with resume, batch operations, and progress tracking.

Classes

FilenUpload

Constants

kDefaultUploadConcurrency → const int
Chunk transfer concurrency (Step 1). N chunks may be in flight at once, bounded by both a ChunkSemaphore (count) and the MemoryGate (bytes), so at most N×(plaintext + encrypted) chunks are ever live — important on mobile.
kSequentialChunkThreshold → const int
Files with this many chunks or fewer keep the simple sequential path — no concurrency machinery is spun up (the overlap win doesn't pay for tiny files).

Functions

contiguousCompletedMax(Set<int> completed) int
Largest M such that chunks 0..M are all in completed (else -1). Expresses an out-of-order completed set as a backward-compatible high-water mark.

Exceptions / Errors

ChunkUploadException
Exception for chunk upload failures (carries resume state).