# Upload Files

> `UiPath.FTP.Activities.UploadFiles`

`UiPath.FTP.Activities.UploadFiles`

## Description

Uploads a file to an FTP server. This activity only works if it is placed inside a [With FTP Session](https://docs.uipath.com/activities/other/latest/workflow/with-ftp-session) scope activity.

## Project compatibility

**Windows - Legacy** | **Windows** | **Cross-platform**

## Windows - Legacy configuration

**Designer panel**
* **Where to upload** - The local path of the files that are to be uploaded. This field supports only strings and `String` variables.
* **Files to upload** - The path on the FTP server where the file is to be uploaded. This field supports only `String` variables.

**Properties panel**

#### Common

* **DisplayName** - The display name of the activity. This field supports only `String` variables.

#### Input

* **Files to upload** - The path on the FTP server where the file is to be uploaded. This field supports only `String` variables.
* **Where to upload** - The local path of the files that are to be uploaded. This field supports only `String` variables.

#### Misc

* **Continue on error** - This field only supports boolean values (**True**, **False**). The default value is **False**. As a result, if this field is blank and an error is thrown, the execution of the project stops. If the value is set to **True**, the execution of the project continues regardless of any error.
* **Private** - If selected, the values of variables and arguments are no longer logged at Verbose level.

#### Options

* **Create** - If this box is checked, the folder path is created on the FTP server in case it does not already exist.
* **Include subfolders** - If this box is checked, the folders are uploaded with their respective subfolders.
* **Overwrite** - If this box is checked, the files are overwritten on the FTP server if they are already stored there.

## Windows, Cross-platform configuration

**Designer panel**
* **Where to upload** - The local path of the files that are to be uploaded. This field supports only `String` variables.
* **Files to upload** - The path on the FTP server where the file is to be uploaded. This field supports only `String` variables.

**Properties panel**

#### Others

* **Create** - If set to **On**, the folder path is created on the FTP server in case it does not already exist. The default value is **Off**.
* **Include subfolders** - If set to **On**, the folders are uploaded with their respective subfolders. The default value is **Off**.
* **Overwrite** - If set to **On**, the files are overwritten on the FTP server if they are already stored there. The default value is **Off**.
