Connecting via FTP on a business modeling platform — MODLR

  • Create a new FTP connection (we use model variables so we can keep this clean)
  • Check if the connection was successful and transfer file
if (client.IsConnected()) {// Transfer file
var result = client.Upload('WeeklyReport.csv', '/var/www/html/weekly-reports/');
//returns a boolean based on the result
} else {
//send a sms notification using notifications.sms
}

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store