Upload File
Uploads a new file to Google Drive.
Body
MIME type of the uploaded file. Supports PDF, Excel, Word, GIF, PNG, JPEG, CSV, plain text, and Markdown.
Base64-encoded file content or a direct download URL that works without interactive sign-in. Supports PDF, Excel, Word, images, CSV, plain text, and Markdown. This action uploads content only. To set name and folder, call Move File after upload using the returned file ID. Prefer a URL for larger files. The Universal API execution timeout still applies.
Not accepted by Upload File. After uploading content, use Move File with the returned fileId and the desired name.
Not accepted by Upload File. After uploading content, use Move File with the returned fileId and the destination folder ID as addParents.
Comma-separated response fields to include.