Skip to content

FTP Client


  1. Create a project ftp-client.
  2. Then create a JavaScript service named ftp-client.js.
  3. Within the service code, enter the following content:

    var response = require("http/v4/response");
    var ftp = require("io/v4/ftp");
    var host = "";
    var port = 21;
    var userName = "demo";
    var password = "password";
    var ftpClient = ftp.getClient(host, port, userName, password);
    var file = ftpClient.getFileText("/", "readme.txt");

For more information, see the API documentation.