User Guide

318 Chapter 17 Managing Files on the Server
Using cffile
The cffile tag gives you the ability to work with files on your server in a number of
ways:
Uploading files from a client to the Web server using an HTML form
Moving, renaming, copying, or deleting files on the server
Reading, writing, or appending to text files on the server
You use the
action attribute to specify any of the following file actions: upload, move,
rename, copy, delete, read, readBinary, write, and append. The required attributes
depend on the
action specified. For example, if action="write", ColdFusion
expects the attributes associated with writing a text file.
Note
Consider the security and logical structure of directories on the server before
allowing users access to them. You can disable the
cffile tag on the Tag Restrictions
page of the ColdFusion Administrator Security tab. Also, to access files that are not
located on the local ColdFusion Server system, ColdFusion services must run using
an account with permission to access the remote files and directories.