When to use
- Transfer files from SFTP servers to cloud storage buckets
- Move files between different SFTP servers
- Read file contents from SFTP for processing in workflows
- Delete processed files from SFTP servers or cloud buckets
- Extract compressed archives (zip, tar, gz, tgz) on remote servers
- List files in SFTP directories for batch processing
Common parameters
Several actions share common SFTP connection parameters. These are documented once here for reference.SFTP Connection Parameters
SFTP Connection Parameters
sftp.example.com or {{config.sftp_host}}22sftp_user or {{env.SFTP_USERNAME}}{{env.SFTP_PASSWORD}}Source/Destination File Details
Source/Destination File Details
SFTP or URL. The destination supports SFTP only.- Host, Port, Username, Password, File Path, PEM Key, PEM Key Passphrase (see SFTP Connection Parameters)
https://example.com/files/export.csv or {{previous_node.file_url}}Actions
Delete file from Refold bucket
Delete file from Refold bucket
uploads/contacts/export-2024.csv or {{uploaded_file.key}}33a64df551425fcc55e4d42a148795d9f25f89d4Transfer file from source to destination
Transfer file from source to destination
| Field | Required | Description |
|---|---|---|
| Protocol | Yes | Select SFTP |
| Host | Yes | SFTP server hostname |
| Port | Yes | SFTP port (default: 22) |
| Username | Yes | SFTP username |
| Password | No | Password (if not using PEM key) |
| File Path | Yes | Full path to the file |
| PEM Key | No | SSH private key in PEM format (if not using password) |
| PEM Key Passphrase | No | Passphrase for the PEM key (if passphrase-protected) |
| Field | Required | Description |
|---|---|---|
| Protocol | Yes | Select URL |
| URL | Yes | Public URL of the file |
Transfer file from source to cobalt bucket
Transfer file from source to cobalt bucket
SFTP; provide the SFTP connection details.| Field | Type | Description |
|---|---|---|
| Infinite Expiry | Toggle | When enabled, the file does not expire. |
| TTL | Integer | Time-to-live in seconds before the file is deleted. Only applies when Infinite Expiry is disabled. |
| Preserve Cloud Provider Presigned URL | Toggle | When enabled, returns the cloud provider’s native presigned URL instead of Refold’s URL. |
Read file from SFTP
Read file from SFTP
sftp.example.com22/uploads/exports/contacts-2024.csvDelete file from SFTP
Delete file from SFTP
sftp.example.com22/uploads/exports/contacts-2024.csvExtract file on SFTP server
Extract file on SFTP server
sftp.example.com22/uploads/archive.zip/downloads/extracted-files/zip, tar, gz, tgzList files in SFTP folder
List files in SFTP folder
sftp.example.com22/uploads/exports/Move file to Refold bucket (deprecated)
Move file to Refold bucket (deprecated)
https://example.com/files/document-2024.pdf86400 (24 hours)uploads/documents/document-2024.pdf3600 (1 hour)Output
Delete file from Refold bucket
Delete file from Refold bucket
Transfer file from source to cobalt bucket
Transfer file from source to cobalt bucket
Read file from SFTP
Read file from SFTP
Delete file from SFTP
Delete file from SFTP
Extract file on SFTP server
Extract file on SFTP server
List files in SFTP folder
List files in SFTP folder
Error Response
Error Response
Adding to your workflow
Add the File Handler node
Configure connection details
Examples
Process SAP Export Files from SFTP
Process SAP Export Files from SFTP
| Field | Value |
|---|---|
| Host | {{env.SAP_SFTP_HOST}} |
| Port | 22 |
| Username | {{env.SAP_SFTP_USER}} |
| Password | {{env.SAP_SFTP_PASSWORD}} |
| File Path | /exports/sap/vendors-{{today}}.csv |
Archive NetSuite Reports to Cloud Storage
Archive NetSuite Reports to Cloud Storage
| Field | Value |
|---|---|
| Protocol | SFTP |
| Host | sftp.netsuite-exports.com |
| Port | 22 |
| Username | {{env.NS_SFTP_USER}} |
| File Path | /reports/financial/{{report_date}}.xlsx |
| PEM Key | {{env.NS_SFTP_PEM_KEY}} |
| Field | Value |
|---|---|
| Infinite Expiry | Enabled |
| Preserve Cloud Provider Presigned URL | Disabled |
Batch Process Tipalti Payment Files
Batch Process Tipalti Payment Files
| Field | Value |
|---|---|
| Host | {{env.TIPALTI_SFTP_HOST}} |
| Port | 22 |
| Username | {{env.TIPALTI_SFTP_USER}} |
| Password | {{env.TIPALTI_SFTP_PASSWORD}} |
| Folder Path | /outbound/payments/ |
- List files in SFTP folder → Get file list
- Loop node → Iterate through files
- Read file from SFTP → Get file content
- Process payments → Your business logic
- Delete file from SFTP → Clean up processed files
Extract Compressed Vendor Data
Extract Compressed Vendor Data
| Field | Value |
|---|---|
| Host | sftp.vendor-portal.com |
| Port | 22 |
| Username | {{env.VENDOR_SFTP_USER}} |
| Password | {{env.VENDOR_SFTP_PASSWORD}} |
| File Path | /incoming/vendor-data-2026-01.tar.gz |
| Extract To | /incoming/extracted/2026-01/ |
Clean Up Processed Files
Clean Up Processed Files
| Field | Value |
|---|---|
| File Key | {{processed_file.key}} |
| File ID | {{processed_file.etag}} |
Transfer Files Between SFTP Servers
Transfer Files Between SFTP Servers
| Field | Value |
|---|---|
| Protocol | SFTP |
| Host | sftp.vendor.com |
| Port | 22 |
| Username | {{env.VENDOR_USER}} |
| Password | {{env.VENDOR_PASSWORD}} |
| File Path | /outbound/invoices/{{invoice_id}}.pdf |
| Field | Value |
|---|---|
| Protocol | SFTP |
| Host | sftp.internal.yourcompany.com |
| Port | 22 |
| Username | {{env.INTERNAL_SFTP_USER}} |
| PEM Key | {{env.INTERNAL_SFTP_PEM}} |
| File Path | /incoming/vendor-invoices/{{invoice_id}}.pdf |
Troubleshooting
SFTP Connection Errors
SFTP Connection Errors
| Problem | Solution |
|---|---|
| Authentication failed | Verify username and password/PEM key. Check if the account is locked or credentials have expired. |
| Connection refused | Confirm the host and port are correct. Check if the SFTP server is running and accessible from Refold’s network. |
| Host key verification failed | The SFTP server’s host key may have changed. Contact your server administrator to verify the new key. |
| Connection timeout | Check network connectivity. The SFTP server may be behind a firewall blocking Refold’s IP addresses. |
File Operation Errors
File Operation Errors
| Problem | Solution |
|---|---|
| File not found | Verify the file path is correct and the file exists. Check for case sensitivity in file names. |
| Permission denied | The SFTP user may not have read/write/delete permissions for the specified path. Contact your server administrator. |
| Disk quota exceeded | The destination server or bucket has reached its storage limit. Free up space or increase quota. |
| File already exists | The destination file path already contains a file. Delete it first or use a unique file name. |
Transfer Errors
Transfer Errors
| Problem | Solution |
|---|---|
| Transfer timeout | The file may be too large. Check network stability and consider splitting large files. |
| Invalid URL | For URL protocol, ensure the source URL is publicly accessible and returns the file directly. |
| Presigned URL expired | Increase the TTL value or use the presigned URL immediately after generation. |
Archive Extraction Errors
Archive Extraction Errors
| Problem | Solution |
|---|---|
| Unsupported format | Only zip, tar, gz, and tgz formats are supported. Convert the archive to a supported format. |
| Corrupt archive | The archive file may be damaged. Request a new file from the source. |
| Insufficient space | The extraction destination doesn’t have enough disk space. Free up space or use a different directory. |