User Guide

50 CFML Language Reference
Tip Use the File prefix to refer to these parameters, for example,
#File.FileExisted#.
Note File status parameters 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.)
UNIX
Examples
The following three examples show the use of the MODE attribute for UNIX. The first
example creates the file
/tmp/foo with permissions defined as rw-r-r-- (owner=read/
write, group/other=read).
<CFFILE ACTION="Write"
FILE="/tmp/foo"
MODE=644>
This example appends to the specified file and makes permissions read/write (rw) for
all.
FileWasRenamed
Indicates (Yes or No) whether or not the
uploaded file was renamed to avoid a name
conflict.
FileWasSaved
Indicates (Yes or No) whether or not Cold
Fusion saved a file.
OldFileSize
Size of a file that was overwritten in the file
upload operation.
ServerDirectory
Directory of the file actually saved on the
server.
ServerFile
Filename of the file actually saved on the
server.
ServerFileExt
Extension of the uploaded file on the server,
without a period, for example, txt not .txt.
ServerFileName
Filename, without an extension, of the
uploaded file on the server.
TimeCreated
Time the uploaded file was created.
TimeLastModified
Date and time of the last modification to the
uploaded file.
File Upload Parameters (Continued)
Parameter Description