Lasso Soft Inc. > Home

[ ftp_putfile ]

Method

[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.

  • Syntax
FTP_PutFile(
    'ftp://ftp.example.com/myfile.zip', 
    -File='/folder/myfile.zip', 
    -Username='Username', 
    -Password='Password',
    -options=array
)
Examples
  • Beginner

To upload a file to an FTP server:

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'
)

Recent Comments

No Comments found

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. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft