"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
onedrive: return err instead of panic on unknown-sized uploads
Cnly7b20139c6a57
diff --git a/backend/onedrive/onedrive.go b/backend/onedrive/onedrive.goindex b53f94815..45f3e7042 100644--- a/backend/onedrive/onedrive.go+++ b/backend/onedrive/onedrive.go@@ -1602,7 +1602,7 @@ func (o *Object) Update(in io.Reader, src fs.ObjectInfo, options ...fs.OpenOptio} else if size == 0 {info, err = o.uploadSinglepart(in, size, modTime)} else {- panic("src file size must be >= 0")+ return errors.New("unknown-sized upload not supported")}if err != nil {return err