"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
Go azure-blobazure-blob-storageazure-filesbackblaze-b2cloud-storagedropboxencryptionftpfuse-filesystemgogolanggoogle-cloud-storagegoogle-driveonedriveopenstack-swiftrclones3sftpsyncwebdav
drive: add missing seek to start on retries of chunked uploads
Stefan Breunig51866fbd34b0
diff --git a/drive/upload.go b/drive/upload.goindex 6a9d4f420..9c0032462 100644--- a/drive/upload.go+++ b/drive/upload.go@@ -157,6 +157,7 @@ func (rx *resumableUpload) transferStatus() (start int64, err error) {// Transfer a chunk - caller must call googleapi.CloseBody(res) if err == nil || res != nilfunc (rx *resumableUpload) transferChunk(start int64, chunk io.ReadSeeker, chunkSize int64) (int, error) {+ _, _ = chunk.Seek(0, 0)req := rx.makeRequest(start, chunk, chunkSize)res, err := rx.f.client.Do(req)if err != nil {