Upload File
Description
Google Drive: Upload File step uploads a file to Google Drive.
References:
API documentation:
- https://developers.google.com/drive/api/reference/rest/v3/files/create
- https://developers.google.com/drive/api/reference/rest/v3/files/update
- https://developers.google.com/drive/api/reference/rest/v3/files/copy
Configurations
No. | Field Name | Description |
---|---|---|
1 | Step name | Name 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. | |
2 | Client ID | Specify Client ID of the Google project. The data type is String. This field is mandatory. |
Client Secret: | ||
3 | Accept Values from fields | Leave 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. |
4 | Client Secret | Specify 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: | ||
5 | Accept Values from fields | Leave 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. |
6 | Refresh Token | Specify 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: | ||
1 | File To Upload | Specify 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. |
2 | Button: Browse | Click to browse the file to be uploaded. |
Additional Input Fields: | ||
1 | Google Drive Folder ID | Specify the parent folder ID where the file has to be Uploaded, chooses root folder if left blank. The data type is String. |
2 | Get | Click to fetch the folders available in Google Drive, selected folder’s ID reflects in Google Drive Folder ID field. |
2 | File 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. |
3 | MIME Type After Upload | Specify 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: | ||
1 | Upload File ID | Specify an output field to hold the Returned ID of the uploaded file. The data type is String. |