mirror of https://github.com/rclone/rclone.git
premiumizeme: pass options to rest.Opts for Put and Update
This commit is contained in:
parent
385542e2f9
commit
14f6ce1e77
|
@ -517,7 +517,7 @@ func (f *Fs) Put(ctx context.Context, in io.Reader, src fs.ObjectInfo, options .
|
||||||
return existingObj, existingObj.Update(ctx, in, src, options...)
|
return existingObj, existingObj.Update(ctx, in, src, options...)
|
||||||
case fs.ErrorObjectNotFound:
|
case fs.ErrorObjectNotFound:
|
||||||
// Not found so create it
|
// Not found so create it
|
||||||
return f.PutUnchecked(ctx, in, src)
|
return f.PutUnchecked(ctx, in, src, options...)
|
||||||
default:
|
default:
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
@ -1002,6 +1002,7 @@ func (o *Object) Update(ctx context.Context, in io.Reader, src fs.ObjectInfo, op
|
||||||
Method: "POST",
|
Method: "POST",
|
||||||
Path: "/folder/uploadinfo",
|
Path: "/folder/uploadinfo",
|
||||||
Parameters: o.fs.baseParams(),
|
Parameters: o.fs.baseParams(),
|
||||||
|
Options: options,
|
||||||
MultipartParams: url.Values{
|
MultipartParams: url.Values{
|
||||||
"id": {directoryID},
|
"id": {directoryID},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue