tus-node-server icon indicating copy to clipboard operation
tus-node-server copied to clipboard

@tus/s3-store incompatibility with R2

Open elliotdickison opened this issue 6 days ago • 1 comments

R2 has a non-standard requirement that all non-trailing parts of a multi-part upload be exactly the same size. With @tus/[email protected] and @tus/[email protected] get the occasional error InvalidPart: All non-trailing parts must have the same length. from R2 and the multi-part upload fails.

This is definitely a shortcoming with R2 and not a bug with @tus/s3-store, but we're trying to work around the issue anyhow. Any ideas why @tus/s3-store might generate parts of varying sizes (not counting the final trailing part)?

Thanks!

elliotdickison avatar Jul 01 '24 18:07 elliotdickison