Activities
latest
false
Banner background image
Productivity Activities
Last updated Apr 26, 2024

Upload Files

UiPath.GSuite.Activities.UploadFilesConnections

Description

Uploads files to Google Drive in a specified location.

Scopes

This activity requires the following scopes:

  • https://www.googleapis.com/auth/drive
  • https://www.googleapis.com/auth/drive.appdata

Project compatibility

Windows | Cross-platform

Configuration

  • Google Drive connection - The connection for the Google Workspace account to use in the activity.
  • File(s) - The file or files to be uploaded. Use the See more button menu to switch to Collection Builder or Use variable input modes. This field accepts IResource input.
    • If you select Use variable, you can use the output variable from other activities.
  • Destination folder - The destination folder for the specified file or files. Browse the Google Drive folders and select a destination folder. Use the See more button menu to switch to Use variable (IResource type) or Url or ID input (String) modes.
    • If you select Use variable, you can use the output variable from other activities, such as Create folder.
    • Select the Reload File Picker option if you've modified your folders and need to retrieve the latest data.

Additional options

Options

  • If files already exist - The expected behavior when a file with the same name already exists in the destination folder. Choose one of the available options from the dropdown menu:
    • Add as a separate file - Adds the file without renaming it even if an item with the same name exists. Default option.
    • Don't replace - Fails if an existing item is found.
    • Auto rename - Auto renames the new item by appending a number.
    • Replace - Replaces the existing item. Fails if multiple items with the same name exists.
  • Convert to Google Workspace file types - Specifies whether the uploaded files should be converted into Google Workspace file type, such as a Google Doc or Sheet.

Important: If you receive an Internal Error [500] message on this activity, this may be caused by a file size issue. Some Excel files aren't successfully converted to the Google Sheets MIME type when they exceed size limits for importing Excel files. Be aware that there's no official documentation regarding all of the limitations currently imposed by Google. This official article explains that the cell count is set at 10 million, while a Google support article mentions that we can convert 40 000 new cells at a time, but doesn't provide details on what the limitations are for various operations.

Output

  • First file - The first uploaded file. Automatically generated output variable. You can use it as it is or save it with a different name. You can use this in other activities.
  • Files - All the uploaded files returned by the activity. Automatically generated output variable. You can use it as it is or save it with a different name. You can use this in other activities.

Example



See also:
  • Description
  • Project compatibility
  • Configuration
  • Example

Was this page helpful?

Get The Help You Need
Learning RPA - Automation Courses
UiPath Community Forum
Uipath Logo White
Trust and Security
© 2005-2024 UiPath. All rights reserved.