Adobe COLDFUSION 9 Manual page 271

Developing applications
Hide thumbs Also See for COLDFUSION 9:
Table of Contents

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
Developing CFML Applications
History
ColdFusion 9 Update 1: Added this function
Example
<cfscript>
mydate = #Now()#;
hello = structNew();
hello.color = "grey";
/cfscript>
<cfset dir = "s3://mycfbucket">
<cffile action="write" file="#dir#/hello5.txt" output="Sample s3 text">
<cfset StoreSetMetadata("#dir#/hello5.txt","#hello#")>
<cfset test = StoreGetMetadata("#dir#/hello5.txt")>
<cfdump var="#test#">
Standard keys
The following are the standard keys in the metadata:
For objects
• last_modified
• date
• owner
• etag
• content_length
• content_type
• content_encoding
• content_disposition
• content_language
• content_md5
• md5_hash
For buckets
• date
• owner
Security considerations
Sandboxing is not applicable to S3 buckets or objects as Amazon S3 has its own security features that take care of it.
Supported functions
fileOpen
fileExists
fileRead
getFileInfo
fileClose
fileisEOF
fileReadBinary
getDirectoryFromPath
Last updated 8/5/2010
fileCopy
fileMove
fileReadLine
directoryCreate
fileDelete
fileWrite
fileSetLastModified
directoryDelete
266

Advertisement

Table of Contents
loading

Table of Contents