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
Summary of Contents for COLDFUSION 5-DEVELOPING
Page 1: ...Macromedia Incorporated Developing ColdFusion Applications MacroMedia ColdFusion 5 ...
Page 58: ...38 Chapter 3 Querying a Database ...
Page 134: ...114 Chapter 7 Updating Your Database ...
Page 210: ...190 Chapter 10 Reusing Code ...
Page 232: ...212 Chapter 11 Preventing and Handling Errors ...
Page 238: ...218 Chapter 12 Using the Application Framework ...
Page 262: ...242 Chapter 12 Using the Application Framework ...
Page 278: ...258 Chapter 13 Extending ColdFusion Pages with CFML Scripting ...
Page 320: ...300 Chapter 15 Indexing and Searching Data ...
Page 336: ...316 Chapter 16 Sending and Receiving E mail ...
Page 374: ...354 Chapter 18 Interacting with Remote Servers ...