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 are Close, ChangeDir, CreateDir, Exists, ExistsDir, ExistsFile, GetCurrentDir, GetCurrentURL, GetFile, ListDir, Open, PutFile, Remove, RemoveDir, and Rename.

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 to Auto. Optional. The default extension list is txt;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 to GetFile. Valid choices are Archive, Compressed, Directory, Hidden, Normal, ReadOnly, System, and Temporary. Optional. The default value is Normal. 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.