Upload a file to Google Drive (file input)
Automatically upload a file to Google Drive (file input) on drive.google.com. Uploads a file into the root of Google Drive using the file-picker flow behind Drive's own upload button, then confirms a new item bearing that upload appears in the file list.
Input
test-upload.pdf requiredOutput
fileId requiredDrive file id of the uploaded file, read from the new row.
filename requiredThe name Drive stored the upload under, read from the new row rather than assumed from the input's declared key.
FAQ
Move a Google Drive file to the Bin
Moves a file to Drive's Bin (never a permanent delete), given just the file's id — its parent folder is resolved automatically.
Upload a file to Google Drive
Upload one file into a Google Drive folder, or into My Drive when no folder is given, and return the stored file's id, name and link. Pass filename to choose the name it is stored under. When the folder already holds a file with that name, ifExists decides: fail (the default) uploads nothing, keepBoth adds a second file with a numbered name, replace adds a new version of the existing file and keeps its id.
List a Google Drive folder
List the files and sub-folders directly inside a Google Drive folder, without recursing or downloading anything. Returns each item's id, name, type, size, dates, owner and link, folders first, one page at a time: pass nextPageToken back as pageToken to read the next page. Omit folderId to list My Drive's root. An empty folder returns empty lists.
