Chapter 14: Managing Files on the Server
225
The following file upload status variables are available after an upload.
File Upload Variables
Parameter
Description
AttemptedServerFile
Initial name ColdFusion used attempting to save a file, for
example,
myfile.txt
. See "
Resolving conflicting file
names
" above.
ClientDirectory
Directory location of the file uploaded from the client’s
system.
ClientFile
Name of the file uploaded from the client’s system, such
as
myfile.txt
.
ClientFileExt
Extension of the uploaded file on the client’s system
without a period, for example,
txt
not
.
txt
.
ClientFileName
Filename without an extension of the uploaded file on
the client’s system.
ContentSubType
MIME content subtype of the saved file, such as
gif
for
image/gif
.
ContentType
MIME content type of the saved file, such as
image
for
image/gif
.
DateLastAccessed
Date and time the uploaded file was last accessed.
FileExisted
Indicates (Yes or No) whether or not the file already
existed with the same path.
FileSize
Size of the uploaded file.
FileWasAppended
Indicates (Yes or No) whether or not ColdFusion
appended the uploaded file to an existing file.
FileWasOverwritten
Indicates (Yes or No) whether or not ColdFusion
overwrote a file.
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 ColdFusion 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.
ServeFile
Filename of the file actually saved on the server.
Содержание COLDFUSION 4.5-DEVELOPING WEB
Страница 1: ...Allaire Corporation Developing Web Applications with ColdFusion ColdFusion 4 5...
Страница 14: ...xiv Developing Web Applications with ColdFusion...
Страница 26: ...xxvi Developing Web Applications with ColdFusion...
Страница 34: ...8 Developing Web Applications with ColdFusion...
Страница 70: ...44 Developing Web Applications with ColdFusion...
Страница 84: ...58 Developing Web Applications with ColdFusion...
Страница 114: ...88 Developing Web Applications with ColdFusion...
Страница 148: ...122 Developing Web Applications with ColdFusion...
Страница 174: ...148 Developing Web Applications with ColdFusion...
Страница 208: ...182 Developing Web Applications with ColdFusion...
Страница 244: ...218 Developing Web Applications with ColdFusion...
Страница 274: ...248 Developing Web Applications with ColdFusion...
Страница 288: ...262 Developing Web Applications with ColdFusion...
Страница 300: ...274 Developing Web Applications with ColdFusion...
Страница 350: ...324 Developing Web Applications with ColdFusion...
Страница 362: ...336 Developing Web Applications with ColdFusion...