"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
zoho: fix large file overwrite creating a duplicate instead of replacing - fixes #9585
Erol Ozcan037340b1b553
diff --git a/backend/zoho/zoho.go b/backend/zoho/zoho.goindex 28e0d6e13..453fde539 100644--- a/backend/zoho/zoho.go+++ b/backend/zoho/zoho.go@@ -1175,11 +1175,13 @@ func (f *Fs) uploadLargeFile(ctx context.Context, name string, parent string, siContentType: "application/octet-stream",Options: options,ExtraHeaders: map[string]string{- "x-filename": url.QueryEscape(name),- "x-parent_id": parent,- "override-name-exist": "true",- "upload-id": uuid.New().String(),- "x-streammode": "1",+ "x-filename": url.QueryEscape(name),+ "x-parent_id": parent,+ // Must carry the x- prefix; without it the stream endpoint ignores+ // the flag and creates a duplicate instead of overwriting.+ "x-override-name-exist": "true",+ "upload-id": uuid.New().String(),+ "x-streammode": "1",},}