Hi,
Im developing an image upload using pothoven-attachment_fu (3.2.8)
and aws-s3 (0.6.3). I want to store my files in Amazon S3.
I follow all the instructions using attachment_fu and s3
my model
has_attachment :content_type => :image,
:storage => :s3,
:max_size => 1.megabyte,
:thumbnails => {
:thumb => ''145x145>'',
:normal => ''480x360>''
}
validates_as_attachment
amazon_s3.yml
development:
bucket_name: ''mybucket''
access_key_id: ''my_access_key''
secret_access_key: ''my_secret_key''
test:
bucket_name:
access_key_id:
secret_access_key:
production:
bucket_name:
access_key_id:
secret_access_key:
Im getting this error:
AWS::S3::PermanentRedirect in PhotoController#create
The bucket you are attempting to access must be addressed using the
specified endpoint. Please send all future requests to this endpoint.
Rails.root: /home/patrick/my_project
Application Trace | Framework Trace | Full Trace
app/controllers/photo_controller.rb:12:in `create''
Can anyone help me with?
Thanks!
Patrick
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit
https://groups.google.com/d/msgid/rubyonrails-talk/0df6a779b88e3ed2194892e6d0eb2543%40ruby-forum.com.
For more options, visit https://groups.google.com/groups/opt_out.