Upload File with SFTP
  • 18 Feb 2020
  • 1 Minute to read
  • Dark
    Light
  This documentation version is deprecated, please click here for the latest version.

Upload File with SFTP

  • Dark
    Light

Article summary

Overview

Secure File Transfer Protocol (SFTP) is a secure method of transferring files across a network. You can use a flow to download a file from an SFTP server with the proper authentication information.

To Upload a File to a specified mail server with this protocol, open your Flow Designer. In the Toolbox panel, expand the category Integration > SFTPand drag an Upload by SFTP component to the workspace.

Example:

Begin by navigating to a Designer Folder and clicking the Create Flow button.

uploadsftp2.png

Name the flow and click Create

uploadsftp4.png

To add the SFTP component, click on Steps then expand the category Integrations > SFTP, and select Upload by SFTP

Then drag it into the workspace.

uploadsftp3.png

uploadsftp6.png

Next, configure the settings for the Upload by SFTP step by selecting it in the workspace and making updates in the Properties panel.

In the SFTP > Server section, complete the Username and Password fields for the account that will connect to the SFTP server.

In the Host field, enter the SFTP server Hostname.

Enter the correct port number in the Port field and select whether the connection uses SSL.

uploadsftp5.png

The Upload by SFTP step takes a file input, a name input and sends the file information to the mail server via SFTP.

Set File to Constant. Upload a file from your local machine. Set Upload to Path to local. This input will give the file a name, which can be found in the SFTP directory on the SFTP server.

uploadsftp1.png

This completes the flow.

Save it and run it in the Debugger.

The file upload may take longer than expected depending on network traffic and transfer speed.

The flow is complete. The file selected in the flow is uploaded successfully to the SFTP server.


Was this article helpful?