n8n

Upload files to SFTP from n8n workflows.

1

Add an HTTP Request node

Add an HTTP Request node to your workflow.

2

Configure

MethodPOST
URLhttps://pushftp.com/api/upload/YOUR_CONNECTION_ID
AuthenticationHeader Auth
Header NameAuthorization
Header ValueBearer pftp_your_key
Body Content TypeForm-Data (for files) or JSON (for URL mode)
Body Parametersfile = binary data from previous node
3

Alternative: URL mode

Set body to JSON and pass {"url":"{{$json.fileUrl}}","path":"/uploads/"} to fetch and upload a file from a URL.

4

Test

Execute the node. Check the response for "success": true.