Im trying to upload my files to Google Drive via REST API (resumable upload).
Everything looks good (XMLHttpRequest
triggers onprogress
and onload
events), but after it (onload triggered) Google Drive PUT request fail with 500 Internal Server Error
. File not appears in my Google Drive folder. Error 500 comes in xhr.onload
, not in xhr.onerror
.
Same thing if im trying to upload that file via Google Drive interface. It happens sometimes, and i haven't environment with 100% reproducing.
Filetype Adobe .DNG or Canon .CR2 and filesize ~28MB.
What im doing wrong? Is it known bug or limitations to filetypes or file?
Possible reasons: filesize limitations, filetype limitations, or maybe my token is expires while my file is uploading?
UPD: Im using this uploader as is, only with cosmetic changes.
See Question&Answers more detail:os