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

nametyperequiredconstraints
connectionstringyesName of the connection instance
actionstringyesenum: UPLOAD_FILEOperation to perform
folderstringyesTarget folder id/path
folderNamestringyesHuman-friendly folder name
filesarray[File]yesminItems: 1Files to upload

File

nametyperequiredconstraints
sourcestringyesSee Source variants belowFile source handle or descriptor
namestringyesOutput file name in Drive

Source variants (anyOf) — same as Amazon S3

  • { id: string, downloadUrl: string } (requires id)
  • { id?: string, downloadUrl: string } (requires downloadUrl)
  • { 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"
    }
  ]
}