MACROMEDIA COLDFUSION 4.5-CFML LANGUAGE Reference page 72

Cfml language reference
Table of Contents

Advertisement

48
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. "
CFML Language Reference

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the COLDFUSION 4.5-CFML LANGUAGE and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Coldfusion 4.5

Table of Contents