Currently uploadObjectFromSink assumes that a 308 return indicates that all data was accepted.
From https://docs.cloud.google.com/storage/docs/performing-resumable-uploads#chunked-upload:
Repeat the above steps for each remaining chunk of data that you want to upload, using the upper value contained in the Range header of each response to determine where to start each successive chunk; you should not assume that the server received all bytes sent in any given request.
Currently
uploadObjectFromSinkassumes that a 308 return indicates that all data was accepted.From https://docs.cloud.google.com/storage/docs/performing-resumable-uploads#chunked-upload: