Upload file action in Google Drive

The Upload file action enables you to upload a file from a storage location to a Google Drive location. You can upload a file from Control Room, local desktop, or stream a file using the file variable option.

Settings

The following settings are available in the Upload action:

Username
Enter the same username that you provided in the Connect action.
Select one of the following options and follow the prompts to add the Username: Credential, Variable, or Insecure string.
File name (with location)
Enter the file path and name. Select one of the following options and follow the prompts to add the file name:
  • Variable: Select this option to upload the file mapped to a file variable.

    The Upload file action supports file streaming. You can assign a file variable to a file available in one of the supported cloud storage or a REST API URI using the supported actions. Select the mapped file variable to upload it to the Google Drive location without downloading the file to local storage. See File streaming using file variable for more information about supported packages and actions.

  • Control Room file: Select this option to upload a file available in the Control Room storage.
  • Desktop file: Select this option to upload a file directly from your desktop.
Upload file
Configure the location in the Google Drive to which you must upload the file.
  • Folder name: Select this option to enter the name of the folder.
  • Folder id: Select this option to enter the id of the folder. The folder id appears in the URL when you open the Google Drive location in any browser. For example, https://drive.google.com/drive/folders/<folder id>.
  • Overwrite existing file: Enable this check box to overwrite an existing file with a newer version.
Returns the id of the uploaded file (optional)
Select an existing string variable or create a string variable to map the id of the uploaded file. This option allows you to verify the status of Upload action.