Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resumable upload? #45

Closed
yohplala opened this issue Jun 29, 2020 · 2 comments
Closed

Resumable upload? #45

yohplala opened this issue Jun 29, 2020 · 2 comments

Comments

@yohplala
Copy link

Hi there!

I just discovered PyDrive2 and am very interested in using it.
I was about to see how implementing a python script to upload/list/download files from Google Drive storage and your library appears the way to go.

I read (maybe too quickly) the doc, and also looked for tickets in your GitHub repo with the word 'resumable', and could not find any hint about this.

Please, does PyDrive support 'resumable upload' as described in Google Drive API doc:
https://developers.google.com/drive/api/v3/manage-uploads#resumable

My intent is to upload large files, and it is advised that for files above 5MB, resumable uploads ought to be used.
I was thus about to follow python script shared here for managing resumable upload in python:
https://tanaikech.github.io/2020/03/05/simple-script-of-resumable-upload-with-google-drive-api-for-python/

If supported, how is it triggered?
Thanks for your feedback.
Bests,

@shcheklein
Copy link
Member

@yohplala PyDrive relies on the MediaIoBaseUpload and uses resumable=True flag internally. So, regular files Upload method is already safe and resumable and should handle large files.

@shcheklein
Copy link
Member

Closing this for now, feel free to reopen and/or follow up with questions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants