0

Suppose user has granted an access to my app which can access user drive. And user imported a drive file in our website by using Google Picker, and that file is now also stored on our server. Webhooks are set to detect future changes to that file. Lets suppose content of a file is changed in Google Drive. I don't want to download the complete file again. Is there a way to only download what has been changed and update the existing file?

Aamir Rind
  • 38,793
  • 23
  • 126
  • 164

1 Answers1

0

It isn't possible to just download the portion of the content that's changed. However, you can inspect the X-Goog-Changed header that Google sends along in the request. You will only need to download the file again if the value is "content". More information on the Push Notifications developer guide.

Eric Koleda
  • 12,420
  • 1
  • 33
  • 51