# Google Drive action - Upload file

This action uploads a file to Google Drive using multipart streaming uploads. There is no fixed limit on file size.

Google Drive Upload file action Google Drive Upload file action

# Input fields

Field name Description
File contents Contents of the file to upload. Accepts a datapill such as File contents from other Workato triggers and actions.
File name Name of the uploaded file. The uploaded file is named Untitled if no value is provided.
Parent folder The parent folder where the file is placed. Select a folder from the picklist or enter the folder ID directly. You can find the folder ID at the end of the folder URL. If entering the folder ID for a shared drive (formerly Team Drive), this value must be in the form folder_id/shared_drive_id (for example, 1fm6iCMYrN7roZZ-ynpVFRTVq9mellrWp/0AB6ZFCw3XdamUk9PAA).

The uploaded file is saved in My Drive if this field is not specified.
Upload MIME type Actual MIME type (opens new window) of the file being uploaded (for example, image/jpeg). Google Drive automatically detects an appropriate value from uploaded content if no value is provided.
Description Description of the file.
Starred Whether the file is starred in Google Drive. Defaults to No.
Viewers can copy content Whether users with View access can copy the file contents. Defaults to Yes if not specified.
Writers can share Whether users with Edit access can share the file. Defaults to Yes if not specified. This field works with My Drive but not shared drives.
Chunk size (KB) Configure this to optimize throughput. Larger chunk size increases throughput, but may hit the API limit. Defaults to 1024 KB if not specified. Refer to File streaming for more information.
Copy requires writer permission Whether the options to copy, print, or download this file are disabled for readers and commenters. Defaults to No if not specified.
Properties A collection of arbitrary key-value pairs which are visible to all users.

# Output fields

Field name Description
Kind Identifies what kind of resource this is. For example, is this a file or folder.
ID ID of the file.
Name Name of the file.
Mime type The MIME type of the file, as stated in Google Drive's documentation (opens new window).
Parents The list of parent folder IDs that contain the file/folder, including the List size and List index.
Description A short description of the file.
Starred Whether you have starred the file.
Viewers can copy content Whether users with View access can copy content.
Writers can share Whether users with Edit access can share the file. This field is not populated for shared drive files.


Last updated: 1/9/2024, 3:57:00 PM