ColdFusion Rename File

Using ColdFusion's <cffile> tag, you can rename a file on the server.

Example of Renaming a File

The following code renames the source file with the name specified with the destination attribute.

Syntax

Here's the full syntax of <cffile="rename">:

For a more detailed explanation, see Adobe's documentation for cffile="rename".