Skip to main content

Upload File

Description

Google Drive: Upload File step uploads a file to Google Drive.

References:

API documentation:

Configurations

No.Field NameDescription
1Step nameName of the step as it appears in the workflow workspace. This name has to be unique in a single workflow.
Connection:Refer Prerequisites and References above to get the connection attributes.
2Client IDSpecify Client ID of the Google project.
The data type is String. This field is mandatory.
Client Secret:
3Accept Values from fieldsLeave checkbox unchecked to accept Client Secret value from a field in the previous steps of the stream using a drop down list.
Else enable checkbox for Secret Key field to appear as Text box.
4Client SecretSpecify Client Secret of the Google project.
The data type is String. This field is mandatory.
If checkbox above is enabled Client Secret field appears as Text box and accepts static values or variables. Else if checkbox above is disabled Client Secret field appears as a drop down containing values from previous steps - to select from.
Refresh Token:
5Accept Values from fieldsLeave checkbox unchecked to accept Secret Key value from a field in the previous steps of the stream using a drop down list.
Else enable checkbox for Secret Key field to appear as Text box.
6Refresh TokenSpecify a Refresh Token to obtain a new Access Token.
Refresh Token is entered using a widget. If checkbox above is enabled Refresh Token field appears as Text box and accepts static values or variables. Else if checkbox above is disabled Refresh Token field appears as a drop down containing values from previous steps - to select from.
The data type is String. This field is mandatory.
Input Fields:
1File To UploadSpecify the local file path (e.g. C:\Text.txt) from where file has to be uploaded.
The data type is String. This field is mandatory.
2Button: BrowseClick to browse the file to be uploaded.
Additional Input Fields:
1Google Drive Folder IDSpecify the parent folder ID where the file has to be Uploaded, chooses root folder if left blank.
The data type is String.
2GetClick to fetch the folders available in Google Drive, selected folder’s ID reflects in Google Drive Folder ID field.
2File Name After Upload (Rename)Specify the file name that should be set after file upload.
The existing file name is used if this field is left blank.
The data type is String.
3MIME Type After UploadSpecify the MIME type of the file that should be set after upload, if left blank the step code tries to identify the original MIME type.
Note: This steps attempts file conversion provided it is a Google supported MIME Type. The data type is String.
Please refer the following URL for Google Supported MIME Types: https://developers.google.com/drive/api/v3/mime-types
Output Fields:
1Upload File IDSpecify an output field to hold the Returned ID of the uploaded file.
The data type is String.