插入和更新文件在谷歌驱动器与javascript

insert and update file in google drive with javascript

本文关键字:驱动器 javascript 谷歌 更新 文件 插入      更新时间:2023-09-26

身份验证工作,但我无法插入文件,或更新它。我完全复制javascript代码从https://developers.google.com/drive/v2/reference/files/insert和调用insertFile函数后认证,但在这个函数我从来没有进入阅读器。Onload = function(e){…}

fileData对象应该是什么?

我只想创建一个包含json对象的文件,并在某些时候更新这个文件。

fileData是要插入的blob。示例使用的是File API,更多信息请访问http://www.html5rocks.com/en/tutorials/file/dndfiles/