FTP Upload folder function

The FTP Upload folder function in RPA.

Help CentreBuilding 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:

  1. Navigate to the process where you would like to add the Upload folder function
  2. Click on the green button’s drop-down (right side of the green button labelled “Process”)
  3. On the menu that appears, click on the “+ Activity” item
  4. From here you can select the FTP Upload folder option
  5. Click "Add" once you are done

Input parameters

ParameterRequiredTypeDefaultDescription
NameYesText-The name of the FTP connection to use
Local PathYesText-The path to the local directory to upload
Remote PathYesText-The destination path on the remote server
VariableNoTextuploaded_filesVariable name to store the list of uploaded files

Output variables

VariableTypeDescription
{uploaded_files}ArrayArray of remote file paths that were uploaded

Errors

ErrorDescription
Connection not foundNo connection exists with the specified name
Directory not foundThe local directory does not exist

Tips

  • Remote directories are created automatically as needed
  • Uploads all files and subdirectories recursively

Related functions

See it working on your own data

Everything documented here ships with the platform – try the document tools free, or go live in 7 days.