ftpUpload

ftpUpload ( string server , string login , string password , string pathServer , string pathDisk , int _chmod , int _port , string _protocol ) : void

Upload a file on your server by FTP.

Example


ftpUpload("68.258.354.12","admin","sd44f88t4h","/var/www/download/myFile.csv",path("tmp")+"csv.csv")

Parameters

server

host

login

password

pathServer

on your server

pathDisk

on your disk

_chmod (optional)

ex:644

_port (optional)

default:21. For SFTP it is generally 22.

_protocol (optional)

default:"ftp"
Possible values:
• "ftp" : Normal FTP protocol
• "sftp" : Transfer over SSH
• "ftps" : Secure FTP or FTP over TLS/SSL (quite rare)