Skip to content
FTP/SFTP

How to use FTP/SFTP

CoreDevelopersCost: 1 credit per runFull guide

What it is for

The FTP/SFTP component connects flooows to FTP, FTPS or SFTP servers to upload, read, rename and delete files and folders. It is very handy for exchanging files with suppliers, banks or legacy systems that still rely on this method.

New File checks the "Path" periodically, every few minutes, and fires when new files appear; you can ignore hidden ones.

Set up the connection

Authentication type: Custom credentials

  1. 1Ask the server admin for the host, port, username and access method (password or private key).
  2. 2Add an FTP/SFTP step and click "Connect".
  3. 3Choose the "Protocol" (FTP, FTPS or SFTP) and fill "Host", "Port" and "Username".
  4. 4Enter the "Password" or paste the "Private Key" for SFTP; adjust "Host Key Algorithm" if the server requires it.
  5. 5Enable "Allow Unauthorized Certificates" only for internal FTPS servers with self-signed certificates, then save.
Connection fieldTypeRequired
ProtocolFixed listNo
Allow Unauthorized CertificatesYes / NoNo
Allow Anonymous LoginYes / NoNo
HostTextYes
PortNumberYes
UsernameTextYes
PasswordSecret keyNo
Private KeySecret keyNo
Host Key AlgorithmMulti-selectNo

Credentials are stored encrypted in your isolated database, in Spain, and are never shown in plain text.

How to use it in a flow

  • Upload File: set the target "File Path" (with name and extension) and map the file from an earlier step into "File content".
  • Create File from Text writes a file from text, such as a CSV built in the flow.
  • Read File Content downloads a file so other components, like CSV or AI, can process it.
  • List Folder Contents and Rename File or Folder help move processed files to an archive folder.

Tips

  • •Prefer SFTP over unencrypted FTP whenever the server supports it.
  • •After processing a file, rename or move it so it is not handled twice.

Triggers (1)

Events that can start a flow. Expand each one to see its fields.

New FilePeriodic check2 fields
FieldTypeRequired
PathTextYes
Ignore hidden filesYes / NoNo

Actions (8)

Operations available as flow steps. Expand each one to see its fields.

Create File from Text2 fields
FieldTypeRequired
File PathTextYes
File contentLong textYes
Upload File2 fields
FieldTypeRequired
File PathTextYes
File contentFileYes
Read File Content1 fields
FieldTypeRequired
File PathTextYes
Delete file1 fields
FieldTypeRequired
File PathTextYes
Create Folder2 fields
FieldTypeRequired
Folder PathTextYes
RecursiveYes / NoNo
Delete Folder2 fields
FieldTypeRequired
Folder PathTextYes
RecursiveYes / NoNo
List Folder Contents1 fields
FieldTypeRequired
Directory PathTextYes
Rename File or Folder2 fields
FieldTypeRequired
Old PathTextYes
New PathTextYes

Common errors

Connection refused or timeout

Check host and port (21 for FTP, 22 for SFTP) and that the server accepts external connections.

Authentication failed

Verify the username, password or private key format.

Handshake failed or unsupported algorithm

Pick another "Host Key Algorithm" the server supports.

No such file

Use absolute paths and check letter case.

Field types

"List (from your account)" loads options from your connected account; "Dynamic fields" appear depending on earlier choices; in any field you can insert data from previous steps with the data selector (e.g. {{trigger.email}}). More about data between steps