# File Transfer Task

The *File Transfer* task performs specified actions on an FTP server. For example, the task can be used to upload a file to an FTP server, rename a file, or delete all files from a remote directory.

<figure><img src="https://750977703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqHxyVNGb7tSdIWecl6Ru%2Fuploads%2FwzY0x7H0PP5QPloZHwhS%2Fimage.png?alt=media&#x26;token=6d8d21cd-163a-4316-872c-9384d56a328e" alt=""><figcaption></figcaption></figure>

To perform an FTP task:

1. Drag and drop the *File Transfer* task object onto the workflow designer. Configure the object by right-clicking on the object’s header and selecting *Properties* from the context menu.

<figure><img src="https://750977703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqHxyVNGb7tSdIWecl6Ru%2Fuploads%2FCTWetnUd83o039PcpkYL%2Fimage.png?alt=media&#x26;token=283018a6-5dc1-48da-88f9-32fb0114fb21" alt=""><figcaption></figcaption></figure>

2. A *File Transfer Action Properties* window will open, as shown below. Here, we will configure the properties of the *File Transfer* task.

<figure><img src="https://750977703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqHxyVNGb7tSdIWecl6Ru%2Fuploads%2FuSkwqYQvfbuBk0Zfol4D%2Fimage.png?alt=media&#x26;token=49726a5c-a95c-446a-bb23-13a19350368d" alt=""><figcaption></figcaption></figure>

*FTP Connection*: To configure a connection with your FTP server, click on the ellipsis button on the right, next to the empty field. A *Web Connection* window will open.

<figure><img src="https://750977703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqHxyVNGb7tSdIWecl6Ru%2Fuploads%2FzJaDbjS1EMnND9aswhm8%2Fimage.png?alt=media&#x26;token=33d2c2d6-eb74-4a26-acf9-c0e384e9519e" alt=""><figcaption></figcaption></figure>

3. Here, set up the FTP server connection by providing the *URL*, *Login Name*, and *Password*. In case of using a proxy, fill in the details under *Proxy Info*. For security protocols, provide details under *FTPS Security Settings*.
   * *FTP Action*: select an action from the *FTP Action* dropdown. The following options are available:
     * *Upload a File*: Uploads a file from a local folder into the remote directory.
     * *Download a File*: Downloads a file from the remote directory into a local folder.
     * *Delete a File*: Deletes a file from the remote directory.
     * *Rename*: Renames a file in the remote directory.
     * *Remove Directory*: Deletes the remote directory.
     * *Upload a File with Unique Name*: Uploads a file from a local folder into the remote directory, renaming the file if needed to ensure a unique file name in the remote directory.

<figure><img src="https://750977703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqHxyVNGb7tSdIWecl6Ru%2Fuploads%2FXDzxNEHGe0j146wX4GSj%2Fimage.png?alt=media&#x26;token=e8231f4a-b3c4-4d66-bc5d-b557487e605e" alt=""><figcaption></figcaption></figure>

The other properties in the *File Transfer Action Properties* window are:

* *Remote Info-Path*: Specify the *Path* of a file or folder on the FTP server.
* *Local Info-Path*: Specify the local *Path* on the server running the workflow.

<figure><img src="https://750977703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqHxyVNGb7tSdIWecl6Ru%2Fuploads%2FNwqsSTEqvWTZvqrI1y0u%2Fimage.png?alt=media&#x26;token=bd02248e-a952-456c-bfd1-e04a2a42a5ad" alt=""><figcaption></figcaption></figure>
