Skip to content

Google Drive: Upload File

Plugin ID: eca_google_drive_upload_file

Available since: 1.0.0

Uploads files from URLs, file fields, or generated content to Google Drive with support for various file sources and formats.

Fields

Authentication Type — config key: auth_type

Choose between API Client (OAuth2) or Service Account authentication.

Type: select · Required: yes · Default: api_client

Allowed values: api_client, service_account

Authentication Source — config key: auth_from

Choose whether to select authentication directly or use a token for dynamic selection.

Type: select · Required: yes · Default: direct

Allowed values: direct, token

API Client — config key: api_client_id

Search and select an API Client for OAuth2 authentication.

Type: textfield · Required: no · Default: empty string

Service Account — config key: service_account_id

Search and select a Service Account for server-to-server authentication.

Type: textfield · Required: no · Default: empty string

Client ID from Token — config key: auth_client_from_token

Token that resolves to a client ID (e.g., [user:field_google_client_id]). The token should contain just the client ID, not the auth type prefix.
This field supports tokens.

Type: textfield · Required: no · Default: empty string

Source Type — config key: source_type

Choose how to provide the file to upload.

Type: select · Required: yes · Default: url

Allowed values: url, file_field, content

Source URL — config key: source_url

URL of the file to upload. Supports token replacement.
This field supports tokens.

Type: textfield · Required: no · Default: empty string

File Field Token — config key: source_file_field

Token representing a file field or file entity. Examples: [entity:field_file], [entity:field_file:entity:path], [entity:field_file:entity:url].
This field supports tokens.

Type: textfield · Required: no · Default: empty string

Generated Content — config key: source_content

Raw content to upload as a file. Supports token replacement for dynamic content generation.
This field supports tokens.

Type: textarea · Required: no · Default: empty string

File Name — config key: file_name

Name for the uploaded file in Google Drive. If empty, will use original filename or generate one.
This field supports tokens.

Type: textfield · Required: no · Default: empty string

Parent Folder ID — config key: parent_folder_id

Optional Google Drive folder ID to upload the file into. Leave empty to upload to root folder.
This field supports tokens.

Type: textfield · Required: no · Default: empty string

Size Limit (MB) — config key: size_limit

Maximum file size in MB. Default: 50MB. Larger files may cause timeouts.

Type: textfield · Required: no · Default: 50

File Token Name — config key: file_token_name

Optional token name to store uploaded file information. Accessible as [token_name:file_id], [token_name:name], [token_name:web_view_link], etc.
This field supports tokens.

Type: textfield · Required: no · Default: empty string