1
0
mirror of https://github.com/rclone/rclone.git synced 2025-12-06 00:03:32 +00:00

drive: update API for teamdrive use - fixes #3348

This commit is contained in:
Nick Craig-Wood
2019-07-30 18:49:06 +01:00
parent f1a687c540
commit 5be968c0ca
2 changed files with 25 additions and 51 deletions

View File

@@ -56,9 +56,7 @@ func (f *Fs) Upload(in io.Reader, size int64, contentType, fileID, remote string
"uploadType": {"resumable"},
"fields": {partialFields},
}
if f.isTeamDrive {
params.Set("supportsTeamDrives", "true")
}
params.Set("supportsAllDrives", "true")
if f.opt.KeepRevisionForever {
params.Set("keepRevisionForever", "true")
}