# File Transfer

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://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FJRwtmYM12fZZ1be9X7uP%2F01-File-Transfer-Object.PNG?alt=media&#x26;token=968a9833-46fa-48d2-8a4e-78f19d87eeb7" alt=""><figcaption></figcaption></figure>

To perform an FTP task, 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.

![](https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FeMTlMgDdke46bcA45TRr%2F02-File-Transfer-Click.PNG?alt=media\&token=0d8eccd2-dcfa-450c-be70-e292ede91d92)

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

![](https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2Fevo5CAZxQSMlrNjtTdYz%2F03-File-Transfer-Properties.PNG?alt=media\&token=44866083-1053-4d46-97ae-ef6db3ce0408)

*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.

![](https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FFcW1OOjwlK2YmCRulNYq%2F04-File-Transfer-Connection.PNG?alt=media\&token=5a98bb0c-c868-4607-88d6-7cde40c8ac1d)

Here, set up the FTP server connection by providing the *URL*, *Login Name*, and *Password*. In the *Connection Method* dropdown, select the preferred file transfer protocol. Centerprise supports various file transfer protocols namely FTP, SFTP, SCP, HDFS and SMB, and each protocol has unique configurations. For detailed instructions, refer to the respective protocol documentation.

<figure><img src="https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FwiyWK6hVCBHVUZsqpOfT%2Fweb.png?alt=media&#x26;token=bfb813bd-cba4-4d4f-9e35-7a479079750f" alt=""><figcaption></figcaption></figure>

In case logs are required for diagnostic purposes, select the preferred option in the *Log Level* dropdown. In case of using a proxy, fill in the details under *Proxy Info*. For security protocols, provide details depending on the connection method and press *OK.*

<figure><img src="https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2Fvx3ZApuruHiQwMXiZpwE%2Flg.png?alt=media&#x26;token=4902caf2-4e26-49a6-b1ce-906279ebf1bd" alt=""><figcaption></figcaption></figure>

In the *File Transfer Action Properties* window set up the *FTP Action*. Select an action from the *FTP Action* dropdown. Below are the options available:

![](https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2Fhog8Z3FYQ9v1ez1gj53t%2F05-File-Transfer-Options.PNG?alt=media\&token=07d103d3-1db1-45aa-a03e-95ac4e4be4b8)

* *Download a File*: Downloads a file from the remote directory into a local folder.
* *Upload a File*: Uploads a file from a local folder into the remote directory.
* *Rename*: Renames a file in the remote directory.
* *Remove Directory*: Deletes the remote directory.
* *Delete a File*: Deletes a file from 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.

![](https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FkqCFH2NcTUBvTBYpgUYe%2F06-File-Transfer-Options-Properties.png?alt=media\&token=ec844710-db07-4651-b66f-8591ad7705ab)

* *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.

This concludes our discussion on the *File Transfer* workflow task in Astera.
