Copying, Renaming, and Deleting Files with <CFFILE>

Gargantuan Electronics has requested a form that enables employees to perform some basic file-management tasks on the company Web server. Employees would like to be able to copy files from one location to another, rename files to match the company's file-naming scheme, and delete old files after they're no longer needed.

To accomplish this, I've designed a four-page application that consists of a form page that collects the necessary data and three unique ACTION pages that each use <CFFILE> to perform the desired task. For security, all the pages reside in a password-protected directory that is accessible only by Gargantuan employees.

Because there are three potential tasks, the form page actually ...

Get Sams Teach Yourself ColdFusion® in 21 Days now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.