Google Drive Step
Uploads files to Google Drive using a named connection and target folder. Use this step to place generated or uploaded files into shared drives for team access and workflows.
Top-level properties
| name | type | required | constraints | |
|---|---|---|---|---|
connection | string | yes | Name of the connection instance | |
action | string | yes | enum: UPLOAD_FILE | Operation to perform |
folder | string | yes | Target folder id/path | |
folderName | string | yes | Human-friendly folder name | |
files | array[File] | yes | minItems: 1 | Files to upload |
File
| name | type | required | constraints | |
|---|---|---|---|---|
source | string | yes | See Source variants below | File source handle or descriptor |
name | string | yes | Output file name in Drive |
Source variants (anyOf) — same as Amazon S3
{ id: string, downloadUrl: string }(requiresid){ id?: string, downloadUrl: string }(requiresdownloadUrl){ name: string, metadata?: { contentType?: string, size?: number, createdAt?: string, updatedAt?: string } }string(URL/handle)
Example (JSON)
{
"connection": "gdrive-prod",
"action": "UPLOAD_FILE",
"folder": "1A2B3C4D",
"folderName": "Shared Reports",
"files": [
{
"source": {
"id": "file-321",
"downloadUrl": "https://files.example.com/download/file-321"
},
"name": "q3-report.pdf"
},
{
"source": {
"name": "team-notes.md",
"metadata": { "contentType": "text/markdown", "size": 512 }
},
"name": "team-notes.md"
},
{
"source": "https://example.com/public/logo.png",
"name": "logo.png"
}
]
}Updated 22 days ago
