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
CFFTP
tag. Required. Possible actions are:Close
,ChangeDir
,CreateDir
,Exists
,ExistsDir
,ExistsFile
,GetCurrentDir
,GetCurrentURL
,GetFile
,ListDir
,Open
,PutFile
,Remove
,RemoveDir
, andRename
.RemoveDir
is 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
ACTION
isListDir
. 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. ...
Get Programming ColdFusion now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.