[FTP_PutFile] uploads a local file to a remote FTP server via PASV mode.
The first parameter must specify the destination URL, the full path and file name for the uploaded file.
An optional -options array can be specified for additional parameters passed to the CURL process.
FTP_PutFile(
'ftp://ftp.example.com/myfile.zip',
-File='/folder/myfile.zip',
-Username='Username',
-Password='Password',
-options=array
)
The following example uploads a file named myfile.zip to ftp://ftp.example.com/private/ which requires a username and password to access the Private folder.
Code
FTP_PutFile(
'ftp://ftp.example.com/private/myfile.zip',
-File='/documents/myfile.zip',
-Username='my_username',
-Password='my_password'
)
Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.
©LassoSoft Inc 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft
Recent Comments