latest reactions

spider
One way is to google for page which cont …
andy
you can find this tool here http://andy. …
Tjarko
Eej Walker, that's pretty cool, I will c …
Walker
Thanks for posting your thoughts. I modi …
Albert
Thanks !! …

Clicky Web Analytics
Use OpenDNS
ZERIGO DNS

Ultimate dns hosting based on pre-defined templates, DNS redirection and lot's more.

mxna feeds

CF101 Archive: September 2007 Object Oriented PizzaJob Opening for ColdFusion Developer at Arizona State UniversityMy New Experience Getting ColdFusion Builder 2 Console WorkingCF101 Archive: February 2007 Data Table GatewaysJob Opening for Sr. ColdFusion Developer in CA/ San Fernando ValleyColdFusion Supports HTTP Verbs PUT And DELETE (As Well As GET And POST)Best wishes for the new FuseboxCF101 Archive: January 2007 Data Access ObjectsOpen Source Conference For CFML DevelopersSkype Blocking Web Services with IIS, ColdFusion & RailoCF101 Archive: October 2006 Five Cool Things with ColdFusionGenerate a tag cloud from an RSS feed with ColdFusionColdFusion MeetUp: Cloudy with a Chance of Tests, with Mike HenkeReminder - Adobe CookbooksCF101 Archive: September 2006 A first look at FusionDebug

All files are strictly confidential: all information is classified.
© Copyright 2002 - 2012 mximize.com.
All right reserved.

Visit Carlos GallupaMXNA webfeed

s3 REST wrapper with ACL and storage choice

Based on the wonderful wrapper that Joe Danziger build about a year ago and the update that Steve Hicks made, I made the wrapper with extra storage choice. You can now choose if you want your bucket stored on the US data storage or in my case the European data storage.

Download the new and improved s3 REST wrapper

The modified code now takes into account the ACL and the STORAGE:

    * putBucket(bucketName, acl, storage) - create a new bucket with the defined ACL and storage.

I have also modified the S3test.cfm so that it includes a drop down for the storage choice US or EU.

The s3.cfc now also takes into account the 307 redirect "error" you get when using EU storage. All the methods have changed to work with the "new-style" REST API and the 307 redirect. The 2 functions that get this "error" are deleteBucket and putObject, i haven't tested the deleteObject code but if this doesn't work just copy/paste the 307 bit from the other methods.

Enjoy!! And if someone could improve the code that would be even better!! This was a quick fix and it could probably improve here en there :-)

UPDATE: I forgot to mention that I don't use the getObject method to get my files... so that method is not working in this exampel. I use the host mybucket.s3.amazonaws.com/filelocation way of getting to the file.

5340 viewed | 3 opinion(s)  | del.icio.us | Digg it | Tjarko @ 14/11/07 12:04 cet


Reactions:

Tom wrote.... (site)

Carlos

Thanks for further developing the wrapper and making it suitable for the European users of Amazon S3.

Steve was working on that for me.. but now he can get back to the main application.

TomC
www.s3dashboard.com

11 December 2007 10:33 cet  

Charlie Arehart wrote.... (mail)

Carlos, it seems Steve Hicks moved his page since you offered that link to his blog entry. It's now at:

http://www.stevehicksonline.com/2007/06/04/amazon-s3-rest-wrapper-with-added-acl/

11 February 2008 21:19 cet  

Tjarko wrote.... (site)

Thanks Charlie!! I changed the link, he probably fixed the little type in the old link ;-)

11 February 2008 22:20 cet  

Leave your comment

Your name


Your url/website/link/email....


Some room for your reaction is placed here..



The answer to the ultimate question is?? (42 ;-))




URL en mail addresses are translated for you... life sometimes is that simple!!