google-api-python-client icon indicating copy to clipboard operation
google-api-python-client copied to clipboard

fix: Empty last chunk case in resumable upload that is not a stream

Open john0312 opened this issue 2 years ago • 1 comments

For an upload that inherits the MediaUpload class and is not a stream, if the size of the upload is exact multiples of the chunksize, the last chunk would be empty and the generated Content-Range header will result in "Bad Request". Details: "Failed to parse Content-Range header."

Fixes #1801 🦕

john0312 avatar May 16 '22 13:05 john0312

For an upload that inherits the MediaUpload class and is not a stream,

if the size of the upload is exact multiples of the chunksize, the last

chunk would be empty and the generated Content-Range header will result

in "Bad Request". Details: "Failed to parse Content-Range header."

  • [ ] > Fixes #1801 `🦕

Blessed4eva avatar Aug 18 '22 03:08 Blessed4eva