"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
s3: fix multpart streaming uploads of 0 length files
Nick Craig-Woodbb58040d9cca
diff --git a/backend/s3/s3.go b/backend/s3/s3.goindex 2ec6ce98e..02fe34d5f 100644--- a/backend/s3/s3.go+++ b/backend/s3/s3.go@@ -5427,8 +5427,8 @@ func (w *s3ChunkWriter) WriteChunk(ctx context.Context, chunkNumber int, readerif err != nil {return -1, err}- // If no data read, don't write the chunk- if currentChunkSize == 0 {+ // If no data read and not the first chunk, don't write the chunk+ if currentChunkSize == 0 && chunkNumber != 0 {return 0, nil}md5sumBinary := m.Sum([]byte{})