O'Reilly logo

Programming ColdFusion 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.

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

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