Skip to content

Commit

Permalink
support all drive
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Dec 16, 2019
1 parent f01ca1a commit c94572f
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 c94572f

Please sign in to comment.