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
- 1Ask the server admin for the host, port, username and access method (password or private key).
- 2Add an FTP/SFTP step and click "Connect".
- 3Choose the "Protocol" (FTP, FTPS or SFTP) and fill "Host", "Port" and "Username".
- 4Enter the "Password" or paste the "Private Key" for SFTP; adjust "Host Key Algorithm" if the server requires it.
- 5Enable "Allow Unauthorized Certificates" only for internal FTPS servers with self-signed certificates, then save.
| Connection field | Type | Required |
|---|---|---|
| Protocol | Fixed list | No |
| Allow Unauthorized Certificates | Yes / No | No |
| Allow Anonymous Login | Yes / No | No |
| Host | Text | Yes |
| Port | Number | Yes |
| Username | Text | Yes |
| Password | Secret key | No |
| Private Key | Secret key | No |
| Host Key Algorithm | Multi-select | No |
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
| Field | Type | Required |
|---|---|---|
| Path | Text | Yes |
| Ignore hidden files | Yes / No | No |
Actions (8)
Operations available as flow steps. Expand each one to see its fields.
Create File from Text2 fields
| Field | Type | Required |
|---|---|---|
| File Path | Text | Yes |
| File content | Long text | Yes |
Upload File2 fields
| Field | Type | Required |
|---|---|---|
| File Path | Text | Yes |
| File content | File | Yes |
Read File Content1 fields
| Field | Type | Required |
|---|---|---|
| File Path | Text | Yes |
Delete file1 fields
| Field | Type | Required |
|---|---|---|
| File Path | Text | Yes |
Create Folder2 fields
| Field | Type | Required |
|---|---|---|
| Folder Path | Text | Yes |
| Recursive | Yes / No | No |
Delete Folder2 fields
| Field | Type | Required |
|---|---|---|
| Folder Path | Text | Yes |
| Recursive | Yes / No | No |
List Folder Contents1 fields
| Field | Type | Required |
|---|---|---|
| Directory Path | Text | Yes |
Rename File or Folder2 fields
| Field | Type | Required |
|---|---|---|
| Old Path | Text | Yes |
| New Path | Text | Yes |
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