"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
b2: fix ChunkWriter size return
Nick Craig-Woodbe17f1523aa2
diff --git a/backend/b2/upload.go b/backend/b2/upload.goindex 6b62ada7e..c53ecedfb 100644--- a/backend/b2/upload.go+++ b/backend/b2/upload.go@@ -241,7 +241,7 @@ func (up *largeUpload) WriteChunk(ctx context.Context, chunkNumber int, reader i}in := newHashAppendingReader(reader, sha1.New())- size += int64(in.AdditionalLength())+ sizeWithHash := size + int64(in.AdditionalLength())// Authorization//@@ -274,7 +274,7 @@ func (up *largeUpload) WriteChunk(ctx context.Context, chunkNumber int, reader i"X-Bz-Part-Number": fmt.Sprintf("%d", chunkNumber+1),sha1Header: "hex_digits_at_end",},- ContentLength: &size,+ ContentLength: &sizeWithHash,}var response api.UploadPartResponse