Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does the Google Drive API support Content-Range for Uploads?

Similar to this question: How does Google Drive API support Content-Range for download requests?

but for uploads. Does the Drive/Docs API let you set a range if you want to update some bytes in an existing file?

like image 700
AndrewF Avatar asked Nov 04 '22 01:11

AndrewF


1 Answers

This depends what you are trying to do.

You can't upload a few bytes to an existing file in a random access way. The API does, however, support the resumable upload protocol so that you can upload large files in chunks. This is fault tolerant per chunk, and uploads can be restarted for any reason if there is a failure.

like image 121
Ali Afshar Avatar answered Nov 14 '22 22:11

Ali Afshar