224
You enter permissions values in the MODE attribute for each type of user: owner,
group, other in that order. For example to assign read permissions for all:
MODE=444
To give a file or directory owner read/write/execute permissions and read only
permissions for everyone else:
MODE=744
Windows
In Windows, you can set the following file attributes:
ReadOnly
Temporary
Archive
Hidden
System
Normal
If ATTRIBUTES is not used, the file's existing attributes are maintained. If Normal is
specified as well as any other attributes, Normal is overridden by whatever other
attribute is specified.
Example: Setting file attribute
This example sets the archive bit for the uploaded file:
<CFFILE ACTION="Copy"
SOURCE="c:\files\upload\keymemo.doc"
DESTINATION="c:\files\backup\"
ATTRIBUTES="Archive">
Note
Evaluating the Results of a File Upload
After a file upload is completed, you can retrieve status information using file upload
variables. 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.
Although you can use either the File or CFFILE prefix, for file uplodad status variables,
CFFILE is preferred, for example,
retained for backward compatibility.) The file status variables can be used anywhere
that ColdFusion variables are used.
Be sure to include the traililng slash (\) in the source and destination file
names.
Developing Web Applications with ColdFusion
CFFILE.ClientDirectory
. (The
prefix is
File
Need help?
Do you have a question about the COLDFUSION 4.5-DEVELOPING WEB and is the answer not in the manual?