This is a sample script for selecting files in Google Drive using HTML select box for Google Apps Script.
Feature of this sample.
- It is a simple and space saving.
- When the folder is selected, the files in the folder are shown.
- When the file is selected, the ID of file is retrieved. Users can use this ID at GAS.
- When a folder is opened, all files in the folder are cached. By this, the second access of the folder is faster.
- It doesn't retrieve all files in Google Drive at once, so the read of files from Google Drive becomes the minimum necessary.