From: James Britt Date: 2007-01-11T11:08:53+09:00 Subject: Re: How to retrieve some photos stored on Amazon with Ruby on Rails Nik wrote: > Hello all! > > Thanks for reading my post first! > > Would anyone be kind enough to instruct me to link my photos I uploaded > to Amazon S3 (by using JungleDisk) on my Ruby on Rails app? > > If there's already an article, could you kindly point me to it? To get stuff via http, the object has to be publicly readable. You can then make a URL from the default s3 domain and the bucket name + object name For example, rubyaz.org uses s3 to serve some images. The bucket name is /e3static.rubyaz.org/images/ An object is cyclonemap.jpg So the URL is http://s3.amazonaws.com/e3static.rubyaz.org/images/cyclonemap.jpg If you want to use a nice URL that maps to your application domain, you need to do some DNS CNAME stuff. Then you can do this: http://e3static.rubyaz.org/images/cyclonemap.jpg If there's something else you need to do that is Rails related, you would do better to ask on the Rails mailing list. -- James Britt "I can see them saying something like 'OMG Three Wizards Awesome'" - billinboston, on reddit.com