Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

sharefile: pass options to rest.Opts for Put and Update

Tim Gallant385542e2f995
diff --git a/backend/sharefile/sharefile.go b/backend/sharefile/sharefile.go
index 2be175003..798bb04c5 100644
--- a/backend/sharefile/sharefile.go
+++ b/backend/sharefile/sharefile.go
@@ -1429,8 +1429,9 @@ func (o *Object) Update(ctx context.Context, in io.Reader, src fs.ObjectInfo, op
var resp *http.Response
var info api.UploadSpecification
opts := rest.Opts{
- Method: "POST",
- Path: "/Items(" + directoryID + ")/Upload2",
+ Method: "POST",
+ Path: "/Items(" + directoryID + ")/Upload2",
+ Options: options,
}
err = o.fs.pacer.Call(func() (bool, error) {
resp, err = o.fs.srv.CallJSON(ctx, &opts, &req, &info)