O'Reilly logo

Programming ColdFusion MX, 2nd Edition by Rob Brooks-Bilson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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=" ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required