Managing Files On The Server - Adobe 38043740 - ColdFusion Standard - Mac Development Manual

Developing applications
Hide thumbs Also See for 38043740 - ColdFusion Standard - Mac:
Table of Contents

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
Using External Resources
Example: caching a connection
<cflock scope="Session" timeout=10>
<cfftp action="Open"
username="anonymous"
password="me@home.com"
server="ftp.eclipse.com"
connection="Session.myconnection">
</cflock>
In this example, the connection cache remains available to other pages within the current session. For this approach
to work, enable session variables in your application, and lock code that uses session variables. For more information
on locking, see
"Using Persistent Data and
Note: Changing connection characteristics, such the
the connection.
Connection actions and attributes
The following table shows the available
cached) connection. If you do not specify an existing connection name, specify the
attributes.
Action
Open
Close
ChangeDir
CreateDir
ListDir
RemoveDir
GetFile
PutFile

Managing Files on the Server

The cffile, cfdirectory, and cfcontent tags handle browser and server file management tasks, such as uploading files
from a client to the web server, viewing directory information, and changing the content type that is sent to the web
browser. To perform server-to-server operations, use the cfftp tag, described in
on page 1240.
Locking" on page 301.
retrycount
actions and the attributes they require when you use a named (that is,
cfftp
Attributes
none
none
directory
directory
name
directory
directory
localfile
remotefile
localfile
remotefile
Last updated 1/20/2012
or
values, could require you to re-establish
timeout
username
Action
Rename
Remove
GetCurrentDir
GetCurrentURL
ExistsDir
ExistsFile
Exists
"Performing file operations with
,
, and
password
server
Attributes
existing
new
server
item
none
none
directory
remotefile
item
cfftp"
1243

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion 9

Table of Contents