What is the coldfusion code to upload a file in amazon s3 api?

会有一股神秘感。 提交于 2019-12-11 13:04:26

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!