1

再会!我目前正在使用 Google Drive API 开发一个网站。但是,我想知道是否有可能知道某个文件是否由项目使用 App Id 创建/上传/共享。我在想它是否属于文件的属性。但是,当我检查时,似乎没有这样的事情。

我正在尝试做的是过滤其他用户使用我的网站共享给帐户所有者的文件。可能吗?关于如何做的任何建议?

先感谢您。

4

1 回答 1

0

File metadata doesn't contain this information unfortunatelly, therefore you can't know if some file was created by your app or not. But FYI Google store it somewhere, if you will try to upload somefile without providing its content type (* / *) and after that try to open this file through browser you will see the message:

No preview available This item was created with YourAppName, a Google Drive app. Download this file or use one of the apps you have installed to open it.

于 2012-12-12T09:22:19.810 回答