Skip to main content

ftp

Transfer files to and from FTP servers for legacy system integration.

Overview

The ftp node transfers files using FTP (File Transfer Protocol). Essential for integrating with legacy systems, industrial equipment, and servers that only support FTP.

21
Default Port
Active
& Passive
Binary
& ASCII
Legacy
Compatible

Security Notice

FTP transmits credentials in plain text. For secure transfers, use the sftp node instead.

Properties

Property Type Default Description
host string - FTP server hostname
port number 21 FTP port
user string "anonymous" Username
password string "" Password
operation string "put" put, get, list, delete
passive boolean true Use passive mode (recommended)

Example: Industrial PLC Data Export

Upload CSV data to legacy industrial server.

// Function node: Format data for FTP upload
var data = msg.payload; // Array of readings

// Convert to CSV
var csv = "timestamp,sensor,value
";
data.forEach(function(row) {
    csv += row.timestamp + "," + row.sensor + "," + row.value + "
";
});

msg.payload = csv;
msg.filename = "/incoming/data-" + Date.now() + ".csv";

return msg;

Related Nodes