66
<CFOUTPUT QUERY="ListFiles">
#name#<BR>
</CFOUTPUT>
<P>Close the connection:
<CFFTP ACTION="close"
CONNECTION="My_query"
STOPONERROR="Yes">
<P>Did it succeed? <CFOUTPUT>#CFFTP.Succeeded#</CFOUTPUT>
--->
</BODY>
</HTML>
File and Directory Operations with CFFTP
Use this form of the CFFTP tag to perform file and directory operations with CFFTP .
If you use connection caching to an already active FTP connection, you don't need to
respecify the connection attributes:
USERNAME
PASSWORD
SERVER
Syntax
<CFFTP
ACTION="action"
USERNAME="name"
PASSWORD="password"
NAME="query_name"
SERVER="server"
ASCIIEXTENSIONLIST="extensions"
TRANSFERMODE="mode"
FAILIFEXISTS="Yes/No"
DIRECTORY="directory name"
LOCALFILE="filename"
REMOTEFILE="filename"
ITEM="directory or file"
EXISTING="file or directory name"
NEW="file or directory name"
PROXYSERVER="proxyserver"
PROXYBYPASS="proxybypass"
PASSIVE="Yes/No">
ACTION
Required if connection is not already cached. If connection caching is used, the
ACTION attribute is not required. Determines the FTP operation to perform. Can
be one of the following:
ChangeDir
CONNECTION="my_query">
CFML Language Reference
Need help?
Do you have a question about the COLDFUSION 4.5-CFML LANGUAGE and is the answer not in the manual?
Questions and answers