LassoScript Utility
Basics Browse Detail

[FTP_PutFile]

Tag Link [FTP_PutFile] Category Utility
Type Substitution Source Available No
Support Preferred Version 6.0
Change Unchanged Data Source Any
Output Type File Security File, Tag
Implementation LCAPI Sets Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0

Description

[FTP_PutFile] uploads a local file to a remote FTP server via PASV mode. The -URL parameter must specify the destination path and file name for the uploaded file.

Syntax

[FTP_PutFile: -URL='ftp://ftp.example.com/myfile.zip', -File='/folder/myfile.zip', -Username='Username', -Password='Password']

Parameters

Required Parameters
-URL The destination path and file name to which the file will be uploaded.
-File The name and path to the local file to be uploaded.
Optional Parameters
-Username Used to specifiy a username needed to log in to the remote FTP server.
-Password Used to specifiy a password needed to log in to the remote FTP server.

Examples

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.

[FTP_PutFile: -URL='ftp://ftp.example.com/private/myfile.zip', -File='/documents/myfile.zip', -Username='my_username', -Password='my_password']