Skip to content

Commit

Permalink
Merge pull request #21 from frankent/feature/support-teamdrive
Browse files Browse the repository at this point in the history
Support Team drive and Shared drive
  • Loading branch information
labbots committed Jan 12, 2020
2 parents 72b2116 + c94572f commit 90bfcdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion upload.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 90bfcdc

Please sign in to comment.