Google Drive resumable upload with javascript

后端 未结 2 1755
挽巷
挽巷 2021-01-07 01:52

I\'m trying to upload files to Google Drive using Google APIs Client Library for JavaScript and resumable upload type.

I authenticate and get the upload URI successf

2条回答
  •  心在旅途
    2021-01-07 02:27

    What works

    To upload a binary blob, use github/googleapi's cors-upload-sample or use my gist fork, UploaderForGoogleDrive, which will grab access_token out of the gapi client for you.

    Here is an ugly mixture of Promise and callback code that works for me. As a prerequisite, gapi,UploaderForGoogleDrive, JSZip need to be loaded via

提交回复
热议问题