mirror of
https://github.com/rclone/rclone.git
synced 2025-08-16 08:38:11 +02:00
googlephotos: pass options to rest.Opts for Put and Update
This commit is contained in:
committed by
Nick Craig-Wood
parent
776966e22c
commit
9ea1361044
@ -954,8 +954,9 @@ func (o *Object) Update(ctx context.Context, in io.Reader, src fs.ObjectInfo, op
|
|||||||
|
|
||||||
// Upload the media item in exchange for an UploadToken
|
// Upload the media item in exchange for an UploadToken
|
||||||
opts := rest.Opts{
|
opts := rest.Opts{
|
||||||
Method: "POST",
|
Method: "POST",
|
||||||
Path: "/uploads",
|
Path: "/uploads",
|
||||||
|
Options: options,
|
||||||
ExtraHeaders: map[string]string{
|
ExtraHeaders: map[string]string{
|
||||||
"X-Goog-Upload-File-Name": fileName,
|
"X-Goog-Upload-File-Name": fileName,
|
||||||
"X-Goog-Upload-Protocol": "raw",
|
"X-Goog-Upload-Protocol": "raw",
|
||||||
|
Reference in New Issue
Block a user