I am a bit confused about the resumable upload to google drive and I am hoping if someone could be kind enough to clarify things a bit.
At this page:
https://developers.google.com/api-client-library/python/guide/media_upload
it states:
For large media files, you can use resumable media uploads to send files, which allows files to be uploaded in smaller chunks.
Describes also the method of doing so using next_chunk(), checking for errors and use of expotential retrying.
All other references to uploading, either inserting or updating a file, are using "resumable=True" but do not implement the "next_chunk" function. Like in this page: https://developers.google.com/drive/v2/reference/files/insert#examples
Does this mean that "resumable" is handled by the library?
If not, in case of errors, are those the same as in the previous example (with next_chunk)?
If my app is supposed to catch the errors then the only way to go is to start uploading from the start since there is no return for success bytes or something else. Is this the right way?
Also at this page: https://developers.google.com/drive/manage-uploads
it states:
With resumable uploads, you can break a file into chunks and send a series of requests to upload each chunk in sequence. This is not the preferred approach since there are performance costs associated with the additional requests, and it is generally not needed.
Which one of those two statements is correct?
Thanks in advance for any input.
Andreas