# Google Drive action - Upload file
This action uploads a file to Google Drive.
# Input fields
| Field name | Description |
|---|---|
| File contents | Contents of the file to upload. Accept a data pill such as File contents from other Workato triggers and actions. |
| File size | Size of the file in bytes. |
| Mime type | Mime type of this file, as stated in Google documentation (opens new window). |
| File name | Name of the uploaded file. |
| Description | Description of the file. |
| Parent folder | The parent folder where the file will reside. Select a folder from the picklist or follow the hint to enter folder ID directly. |
| Starred | Whether you want to star the file. |
| Viewers can copy content | Deprecated. |
| Writers can share | Whether users with only writer or edit permissions can modify the file's permissions. Not populated for Team Drive files. |
# 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 documentation (opens new window). |
| Parents | The list of the parent folders which contain the file. |
| - ID | The ID of this parent folder. |
| - List size | The number of parent folders in this list. |
| Description | A short description of the file. |
| Starred | Whether you has starred the file. |
| Viewers can copy content | Deprecated |
| Writers can share | Whether users with only writer or edit permissions can modify the file's permissions. Not populated for Team Drive files. |
Last updated: 7/2/2021, 7:31:20 AM