Using cffile

You can use the cffile tag to work with files on the server in several ways:

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 in the ColdFusion MX Administrator. Also, to access files that are not located on the local ColdFusion MX system, ColdFusion services must run using an account with permission to access the remote files and directories.

This section describes the following topics: