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, and Rename. 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 for Open. 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 is ListDir. 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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.