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.
Note that file and directory names are case sensitive.
Attributes
-
action="
action
"
The action to be performed by the
cfftp
tag. Required. Possible actions areClose
,ChangeDir
,CreateDir
,Exists
,ExistsDir
,ExistsFile
,GetCurrentDir
,GetCurrentURL
,GetFile
,ListDir
,Open
,PutFile
,Remove
,RemoveDir
, andRename
.-
agentname="
agent_name
"
A name for the application or entity making the FTP connection. Optional. This attribute is no longer supported in ColdFusion MX.
-
asciitextextensionlist="
extensions
"
A semicolon-delimited list of file extensions that force the transfer mode to ASCII when the
transfermode
attribute is set toAuto
. Optional. The default extension list istxt;htm;html;cfm;cfml;shtm;shtml;css;asp;asa
.-
attributes="
file_attributes
"
A comma-delimited list of attributes to be applied to the file being downloaded when
action
is set toGetFile
. Valid choices areArchive
,Compressed
,Directory
,Hidden
,Normal
,ReadOnly
,System
, andTemporary
. Optional. The default value isNormal
. File attributes vary depending on the operating systems involved in the file transfer. This attribute is no longer supported in ColdFusion MX.-
connection=" ...
Get Programming ColdFusion MX, 2nd Edition 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.