Name
CFFTP
Synopsis
<CFFTP>
Allows a ColdFusion program to communicate with an FTP server. The
action taken depends on the ACTION attribute.
Open opens an FTP connection between the
ColdFusion server and a remote FTP server, while
Close closes a connection to an FTP server. The
rest of the actions perform various file and directory operations.
Attributes
-
ACTION="action" The action to be performed by the
CFFTPtag. Required. Possible actions are:Close,ChangeDir,CreateDir,Exists,ExistsDir,ExistsFile,GetCurrentDir,GetCurrentURL,GetFile,ListDir,Open,PutFile,Remove,RemoveDir, andRename.RemoveDiris new as of ColdFusion 5.0.-
USERNAME="username" The username to send to the FTP server. If none is required, convention dictates that you pass “anonymous” as the username. Required for
Open. Also required for all file and directory operations unless using a cached connection.-
PASSWORD="password" Password to send to the FTP server in conjunction with
USERNAME. If none is required, convention dictates that you pass the email address of the user as the password. Required forOpen. Also required for all file and directory operations unless using a cached connection.-
NAME="query_name" The name of a query to hold the directory listing when
ACTIONisListDir. Required for this action.-
SERVER="FTP_server" Hostname or IP address of the FTP server you want to connect to. Required for
Open. Also required for all file and directory operations unless using a cached connection. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access