Google Apps脚本 - 从Google云端硬盘添加文件

时间:2015-04-30 15:29:30

标签: google-apps-script google-drive-api

首先,我想让您知道我谈论 uploading a file from users computer drive

我的目标是允许用户将Google云端硬盘中的文件添加到Google云端硬盘中的特定文件夹中。我经常搜索(很多)我找不到类似的东西。

你见过这个窗口吗?我可以使用类似的东西(西班牙语,但我确定你以前见过它)。 它允许您从PC或Google云端硬盘上传文件

enter image description here

是否可以通过Google Apps脚本访问此弹出窗口?如果没有,有哪些替代方案?

1 个答案:

答案 0 :(得分:1)

你列出的是谷歌选择器。它可以在应用程序脚本中使用。

https://developers.google.com/apps-script/guides/dialogs#file-open_dialogs

云端硬盘选择器的文档可在以下网址找到:

https://developers.google.com/picker/docs/