mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 07:52:24 +00:00
A 0-byte file produced a multipart upload with zero parts, which S3/R2 reject with a cryptic CompleteMultipartUpload error. Guard file.size === 0 up front with a clear message, before any S3 request is issued. Cloudflare-upload #4. Test: tests/multipart-empty-file-guard.test.mjs. Co-Authored-By: Claude Opus 4.8 <[email protected]>