问题
I am having a problem trying to figure out what is the proper coldfusion code to upload a simple file into amazon s3 api. Any help is much appreciated!!!
回答1:
There is a good tutorial here. You'll need CF 9.0.1 however.
Prior to CF 9 you might be able to use this CFC that Barney Boisvert wrote.
回答2:
Try this CFC: http://amazons3.riaforge.org/
Also, note that you may also access your objects via: http://bucketname.s3.amazonaws.com/name-of-the-object (example)
回答3:
<cfset s3bucket = "s3://yourbuketname/">
<cffile action="upload" filefield="filename" destination="#s3bucket#" nameconflict="makeunique" charset="utf-8" />
来源:https://stackoverflow.com/questions/5196658/what-is-the-coldfusion-code-to-upload-a-file-in-amazon-s3-api