Upload File with FTP
  • 30 Mar 2022
  • 1 Minute to read
  • Dark
    Light
  This documentation version is deprecated, please click here for the latest version.

Upload File with FTP

  • Dark
    Light

Article summary

Overview

File Transfer Protocol (FTP) is a secure method for transferring files across a network. Some FTP servers allow an anonymous connection, but many require that you enter the user name and password for the FTP server when connecting. Use a flow to upload a file to an FTP server, using the authentication information you specify.
To use a flow to upload a file go into the Flow Designer. In the Steps panel, expand the category Integration > FTP and add an Upload component to the workspace.

Example

In this example, create a flow to upload a file via FTP. The only prerequisite for this example is an FTP site. To begin, navigate to a Designer Folder and select the 'Create Flow' button.

Give the Flow a name and select 'Create' to open it in the Flow Designer.

In the Flow Designer's Add After dialog, expand the category Integrations > All Integrations > FTP, and select an Upload step. Select 'Add' to add it to the workspace.

This Flow has only one step. Connect the Upload step to the End step.

Set the values for FTP authentication and connection, and select a file to upload.
In the Properties panel, in the FTP > Server > Authentication section, complete the Username and Password fields for the FTP account. In the Host field,  enter the Hostname of the FTP server. In the section Inputs > File,  select Constant from the mapping type drop-down list.

To select the file to upload, either Drag a File into this space or select Choose File. For this example select Choose File. Select a file to upload, and select 'Open'.


In the section Inputs > Upload to Path, enter a name for the uploaded file in the Value field. To access the file once it is uploaded, the user will look for the file in the FTP directory on the FTP server.

Upload to Path Definition
The Upload to Path value must represent and be formatted as a valid path in the FTP Directory of the FTP Host, beginning with the primary Folder and ending with the File Name.

Define the file Path in the following format: /[Folder Name]/[Subfolder Name]/[File Name], for example: "/Projects/Project2/projectreadme.txt".

This completes the flow. Save it and run it in the Debugger. The file upload speed may vary depending on network traffic and transfer speed.


Was this article helpful?