User Guide
Evaluating the Results of a File Upload 325
Note
File status variables are read-only. They are set to the results of the most recent
cffile operation. If two cffile tags execute, the results of the first are overwritten
by the subsequent cffile operation.
fileWasAppended Indicates (Yes or No) whether ColdFusion appended the
uploaded file to an existing file.
fileWasOverwritten Indicates (Yes or No) whether ColdFusion overwrote a file.
fileWasRenamed Indicates (Yes or No) whether the uploaded file was
renamed to avoid a name conflict.
fileWasSaved Indicates (Yes or No) whether ColdFusion saved a file.
oldFileSize Size of a file that was overwritten in the file upload
operation. Empty if no file was overwritten.
serverDirectory Directory where the file was saved on the server.
serveFile Full name of the file saved on the server with the file
extension; for example, myfile.txt.
serverFileName Name of the file saved on the server without an extension;
for example, myfile.
serverFileExt Extension of the file saved on the server without a period; for
example, txt, not .txt.
timeCreated Date and time the uploaded file was created.
timeLastModified Date and time of the last modification to the uploaded file.
Variable Description