Help Centre › Building Processes
This article describes the RPA FTP functionality to upload a folder to a remote server.
For a full list of available functions, please read FTP functions.
Description
The Upload folder function uploads an entire local directory and its contents to the remote server. Returns an array of uploaded file paths.
Setting it up
To use the Upload folder function, follow these instructions:
{{popups:rpas/add:action=ftp-upload-folder}}
Once on a process map:
- Navigate to the process where you would like to add the Upload folder function
- Click on the green button’s drop-down (right side of the green button labelled “Process”)
- On the menu that appears, click on the “+ Activity” item
- From here you can select the FTP Upload folder option
- Click "Add" once you are done
Input parameters
| Parameter | Required | Type | Default | Description |
|---|---|---|---|---|
| Name | Yes | Text | - | The name of the FTP connection to use |
| Local Path | Yes | Text | - | The path to the local directory to upload |
| Remote Path | Yes | Text | - | The destination path on the remote server |
| Variable | No | Text | uploaded_files | Variable name to store the list of uploaded files |
Output variables
| Variable | Type | Description |
|---|---|---|
| {uploaded_files} | Array | Array of remote file paths that were uploaded |
Errors
| Error | Description |
|---|---|
| Connection not found | No connection exists with the specified name |
| Directory not found | The local directory does not exist |
Tips
- Remote directories are created automatically as needed
- Uploads all files and subdirectories recursively