-->

Download File in Appmaker

2019-02-20 13:54发布

问题:

I have created one app in Appmaker, I want to download certain reports from the Drive tables in Appmaker. For this currently I am creating SpreadSheet using Drive APIs. I want to add download feature as well which allows users to Download Spreadsheet in their local machine.

I have done research on Appscript which allows users to Download files using ContentService, however I do not have any HTMl page from where I can invoke this method. Are there any alternatives for this?

回答1:

It seems that you can get download URL using DriveApp Apps Script service

// Server script
var downloadUrl = DriveApp.getFileById(FileIdGoesHere).getDownloadUrl();


标签: appmaker