Skip to content

Clamp parallel upload part count to the file size - #915

Open
m7kvqbe1 wants to merge 1 commit into
tus:mainfrom
m7kvqbe1:fix/parallel-parts-small-files
Open

m7kvqbe1 wants to merge 1 commit into
tus:mainfrom
m7kvqbe1:fix/parallel-parts-small-files

Conversation

@m7kvqbe1

Copy link
Copy Markdown

With parallelUploads larger than the file, splitSizeIntoParts produced zero-byte parts: a 7-byte file with 8 parts made seven empty partial uploads and one carrying everything. The part count is now clamped to the size, so a 7-byte file gets seven one-byte parts. tusd tolerates the empty partials, but a stricter server wouldn't, and it's an extra creation request either way. Spec included.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant