File upload
File upload
Uploads a local file to a specific path in Google Drive.
Options
Google Drive account
Select the Connection action set up in the flow.
Drive (optional)
Enter the name of the destination drive. Leave it empty to use "My Drive".
Path in the Drive
Enter the full destination path in Google Drive, including the file name and extension, for example /Documentos/relatorio.pdf.
Local file path
Enter the full path of the local file to upload, for example C:\Relatorios\relatorio.pdf.
Create intermediate folders
When enabled, it automatically creates the folders of the destination path that do not exist yet. Default: disabled.
Returns
Javascript code
js
actions["action-id"].id // unique identifier of the file created in the Drive (Text)
Field selection
- id — unique identifier of the file created in Google Drive (Text)
Rules and Conditions
- The Google Drive account, Path in the Drive and Local file path fields are required.
- The local file must exist and be reachable by the robot.
- If Create intermediate folders is disabled and the destination path does not exist, the robot stops with an error.