From 1aa482c3336b7ce25e39de53aeb541cf3457a2f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20M=C3=B6ller?= Date: Mon, 29 Jan 2018 23:36:39 +0100 Subject: [PATCH] drive: fix chunked upload (#2030) --- backend/drive/upload.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/drive/upload.go b/backend/drive/upload.go index a3efc006d..19cda9994 100644 --- a/backend/drive/upload.go +++ b/backend/drive/upload.go @@ -58,10 +58,11 @@ func (f *Fs) Upload(in io.Reader, size int64, contentType string, info *drive.Fi params := make(url.Values) params.Set("alt", "json") params.Set("uploadType", "resumable") + params.Set("fields", partialFields) if f.isTeamDrive { params.Set("supportsTeamDrives", "true") } - urls := "https://www.googleapis.com/upload/drive/v2/files" + urls := "https://www.googleapis.com/upload/drive/v3/files" method := "POST" if fileID != "" { params.Set("setModifiedDate", "true")