Chapter 1: ColdFusion Tags
49
Evaluating the results of a file upload
After a file upload is completed, you can retrieve status information using file upload
parameters. This status information includes a wide range of data about the file, such
as the file’s name and the directory where it was saved. File upload status parameters
use the "File " prefix, for example,
File.ClientDirectory
. The file status
parameters can be used anywhere other
ColdFusion parameters can be used.
The following file upload status parameters are available after an upload.
File Upload Parameters
Parameter
Description
AttemptedServerFile
Initial name ColdFusion used attempting to
save a file, for example, myfile.txt.
ClientDirectory
Directory location of the file uploaded from
the client’s system.
ClientFile
Name of the file uploaded from the client’s sys-
tem.
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.
ContentType
MIME content type of the saved file.
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 ColdFu-
sion appended the uploaded file to an existing
file.
FileWasOverwritten
Indicates (Yes or No) whether or not ColdFu-
sion overwrote a file.
Содержание COLDFUSION 4.5-CFML LANGUAGE
Страница 1: ...Allaire Corporation CFML Language Reference ColdFusion 4 5...
Страница 207: ...Chapter 1 ColdFusion Tags 183 CFCATCH CFTRY BODY HTML...
Страница 224: ...200 CFMLLanguageReference CFOUTPUT P Text within CFOUTPUT is always shown CFOUTPUT BODY HTML...
Страница 296: ...272 CFMLLanguageReference INPUT TYPE text NAME number2 BR INPUT TYPE submit NAME submit VALUE Add FORM BODY HTML...
Страница 336: ...312 CFMLLanguageReference CFIF BODY HTML...
Страница 404: ...380 CFMLLanguageReference DE It is morning CFOUTPUT P BODY HTML...
Страница 413: ...Chapter 2 ColdFusion Functions 389 Customer BalanceDue BR CFOUTPUT CFIF BODY HTML...
Страница 483: ...Chapter 2 ColdFusion Functions 459 CFOUTPUT CFLOOP BODY HTML...
Страница 557: ...Chapter 2 ColdFusion Functions 533 P CFOUTPUT Value i is employee keysToStruct i CFOUTPUT P CFLOOP CFIF BODY HTML...
Страница 584: ...560 CFMLLanguageReference...
Страница 594: ...570 CFMLLanguageReference...