![MACROMEDIA COLDFUSION 4.5-CFML LANGUAGE Reference Download Page 72](http://html1.mh-extra.com/html/macromedia/coldfusion-4-5-cfml-language/coldfusion-4-5-cfml-language_reference_3287257072.webp)
48
CFML Language Reference
Note that the browser uses the file extension to determine file type.
MODE
Optional. Defines permissions for an uploaded file on Solaris or HP-UX. Ignored
in Windows. Valid entries correspond to the octal values (not symbolic) of the
UNIX chmod command. Permissions are assigned for owner, group, and other,
respectively. For example:
MODE=644
Assigns the owner read/write permissions and group/other read permission.
MODE=666
Assigns read/write permissions for owner, group, and other.
MODE=777
Assigns read, write, and execute permissions for all.
ATTRIBUTES
Optional. A comma-delimited list of file attributes to be set on the file being
uploaded. The following file attributes are supported:
•
ReadOnly
•
Temporary
•
Archive
•
Hidden
•
System
•
Normal
If ATTRIBUTES is not used, the file’s attributes are maintained. If Normal is
specified as well as any other attributes, Normal is overridden by whatever other
attribute is specified.
Individual attributes must be specified explicitly. For example, if you specify just
the ReadOnly attribute, all other existing attributes are overwritten.
Examples
The following example will create a unique filename if there is a name conflict when
the file is uploaded on Windows:
<CFFILE ACTION="Upload"
FILEFIELD="FileContents"
DESTINATION="c:\web\uploads\"
ACCEPT="text/html"
NAMECONFLICT="MakeUnique">
Note
On Windows, you must include the backward slash (\) after the
destination directory name. On UNIX, you must include the forward
slash (/) after the destination directory. In this example, the specified
destination directory is "uploads. "
Summary of Contents for COLDFUSION 4.5-CFML LANGUAGE
Page 1: ...Allaire Corporation CFML Language Reference ColdFusion 4 5...
Page 207: ...Chapter 1 ColdFusion Tags 183 CFCATCH CFTRY BODY HTML...
Page 224: ...200 CFMLLanguageReference CFOUTPUT P Text within CFOUTPUT is always shown CFOUTPUT BODY HTML...
Page 336: ...312 CFMLLanguageReference CFIF BODY HTML...
Page 404: ...380 CFMLLanguageReference DE It is morning CFOUTPUT P BODY HTML...
Page 413: ...Chapter 2 ColdFusion Functions 389 Customer BalanceDue BR CFOUTPUT CFIF BODY HTML...
Page 483: ...Chapter 2 ColdFusion Functions 459 CFOUTPUT CFLOOP BODY HTML...
Page 584: ...560 CFMLLanguageReference...
Page 594: ...570 CFMLLanguageReference...