From c94572f575f565d986c29ec3118c1677808b35a7 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 16 Dec 2019 17:48:46 +0000 Subject: [PATCH] support all drive --- upload.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/upload.sh b/upload.sh index a0c0551..8a622b0 100755 --- a/upload.sh +++ b/upload.sh @@ -181,7 +181,7 @@ function uploadFile(){ -H "X-Upload-Content-Type: $MIME_TYPE" \ -H "X-Upload-Content-Length: $FILESIZE" \ -d "$postData" \ - "https://www.googleapis.com/upload/drive/v2/files?uploadType=resumable" \ + "https://www.googleapis.com/upload/drive/v2/files?uploadType=resumable&supportsAllDrives=true&supportsTeamDrives=true" \ --dump-header - | sed -ne s/"Location: "//pi | tr -d '\r\n'` # Curl command to push the file to google drive.