Chapter 14: Managing Files on the Server
The following file upload status variables are available after an upload.
File Upload Variables
Parameter
AttemptedServerFile
ClientDirectory
ClientFile
ClientFileExt
ClientFileName
ContentSubType
ContentType
DateLastAccessed
FileExisted
FileSize
FileWasAppended
FileWasOverwritten
FileWasRenamed
FileWasSaved
OldFileSize
ServerDirectory
ServeFile
Description
Initial name ColdFusion used attempting to save a file, for
example,
. See
myfile.txt
names" above.
Directory location of the file uploaded from the client's
system.
Name of the file uploaded from the client's system, such
as
.
myfile.txt
Extension of the uploaded file on the client's system
without a period, for example,
Filename without an extension of the uploaded file on
the client's system.
MIME content subtype of the saved file, such as
image/gif
.
MIME content type of the saved file, such as
.
image/gif
Date and time the uploaded file was last accessed.
Indicates (Yes or No) whether or not the file already
existed with the same path.
Size of the uploaded file.
Indicates (Yes or No) whether or not ColdFusion
appended the uploaded file to an existing file.
Indicates (Yes or No) whether or not ColdFusion
overwrote a file.
Indicates (Yes or No) whether or not the uploaded file
was renamed to avoid a name conflict.
Indicates (Yes or No) whether or not ColdFusion saved a
file.
Size of a file that was overwritten in the file upload
operation.
Directory of the file actually saved on the server.
Filename of the file actually saved on the server.
"Resolving conflicting file
txt
not.
txt
.
for
gif
image
for
225
Need help?
Do you have a question about the COLDFUSION 4.5-DEVELOPING WEB and is the answer not in the manual?