
261
DEVELOPING
COLDFUSION 9 APPLICATIONS
Developing CFML Applications
Las
t
upda
te
d 8/5/2010
The following are the supported functions:
•
FileIsEOF
•
FileReadBinary
•
Filecopy
•
FileReadLine
•
FileExists
•
FileWriteln
•
FileOpen
•
FileClose
•
FileRead
•
FileDelete
New attributes in cfdirectory action="create" tag
Setting up access control
Amazon S3 lets you set access control list (ACL) for buckets and objects. The ACLs for buckets and objects are
independent. You have to manage them separately. Also, object ACLs do not inherit from the bucket ACLs.
ACL consists of multiple Grants where each grant has a grantee and a permission. S3 allows three types of grantees:
•
group
•
•
canonical (ID)
The following are the possible permissions:
•
read
•
write
•
read_acp
•
write_acp
•
full_control
See
Amazon S3 ACL Documentation
for more details.
Attribute Added Description
Example
storeLocation
Used to change the location of the created bucket. The
location can either be
EU
or
US
. The default location is
US
.
<cfdirectory action="create"
directory="s3://<bucketname>"
storelocation="US">
<cfdirectory action="create"
directory="s3://<bucketname>"
storelocation="EU">
storeACL
An array of struct where each struct represents a permission or
grant as discussed in “
ACLObject
” on page
262.
<cfdirectory action="create"
directory="s3://<bucketname>"
storeACL="ACLObject">
Содержание COLDFUSION 9
Страница 1: ...Developing Applications ADOBE COLDFUSION 9...