Google Drive
Upload File to Google Drive
Upload a file to Google Drive.
Endpoint
Parameters
| Name | Type | Required | Note |
|---|---|---|---|
| identifieraccount · required | account | required | — |
| namestring · required | string | required | Include the extension, e.g. report.pdf |
| mimeTypestring · required | string | required | Pick a common type, or use the {} toggle to enter a custom MIME type or a {{variable}}. One of: |
| attachmentIdstring · optional | string | optional | In chat: the Attachment ID of a file in this conversation (an upload, a file-create result, or a file published by code). The stored file is uploaded byte for byte; do not also fill Content. Leave empty in a Workflow. |
| contentBase64string · required if attachmentId is empty | string | required if attachmentId is empty | Base64-encoded file content, required when no Chat file is given. Use a Data Transform node or the btoa() function to encode it. Example: btoa(unescape(encodeURIComponent(fileContent))). In chat, pass the file's Attachment ID in Chat file instead of writing its content. |
| parentFolderIdstring · optional | string | optional | Folder to upload into. Omit for My Drive root. Example: |