MACROMEDIA COLDFUSION 5 - CFML Reference page 90

Cfml reference
Hide thumbs Also See for COLDFUSION 5 - CFML:
Table of Contents

Advertisement

72
Attribute
mode
attributes
Example
The following example creates a unique filename if there is a name conflict when the
file is uploaded on Windows:
<cffile action = "upload"
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."
Usage
After a file upload is completed, you can retrieve status information using file upload
parameters. The status information includes data about the file, such as the file's
name and the directory where it was saved. File upload status parameters use the
cffile
be used anywhere other ColdFusion parameters can be used.
Description
Optional. Defines permissions for an uploaded file on UNIX and Linux
platforms. Ignored in Windows. Option values correspond to the octal
values (not symbolic) of the UNIX
assigned for owner, group, and other, respectively.
For example:
mode = "644"
read permissions for the group and other.
mode = "666"
and other.
mode = "777"
all.
Optional. A comma-delimited list of file attributes to be set on the file
being uploaded. Options are:
readOnly
temporary
archive
hidden
system
normal
If
attributes
normal
whatever other attribute is specified.
Individual attributes must be specified explicitly. For example, if you
specify only the
overwritten.
fileField = "FileContents"
destination = "c:\web\uploads\"
accept = "text/html"
nameConflict = "MakeUnique">
prefix; for example,
Assigns read/write permissions for the owner, and
Assigns read/write permissions for owner, group,
Assigns read, write, and execute permissions for
is not used, the file's attributes are maintained. If
is specified with other attributes,
readOnly
attribute, all other existing attributes are
cffile.clientDirectory
Chapter 2 ColdFusion Tags
command. Permissions are
chmod
is overridden by
normal
. The file status parameters can

Advertisement

Table of Contents
loading
Need help?

Need help?

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

This manual is also suitable for:

Coldfusion 5

Table of Contents