问题
This is a conceptual question regarding the realtime editing of large files. Imagine we have a 50 Mb txt file in Google Drive that we want to allow users to edit. We require that the user downloads the entire file before they start editing (The user will have to wait for a while, but this is ok). The user then changes a single word in the 50 Mb text file. How can we possibly update the file in Google Drive without uploading all 50 Mb of text.
回答1:
If you are creating an Android application, the Google Drive Android API handles this differential upload for you behind the scenes.
If you are not using the Android API, it is not currently possible via the Drive RESTful API.
回答2:
You say the files are "txt" which suggests they are not Google docs. Drive considers all such files to be blobs. so I can't see anyway they can be patched.
来源:https://stackoverflow.com/questions/30006464/partially-editing-a-document-in-google-drive