ruby on rails - problem when uploading photos to Amazon s3 using paperclip -


my model:

  has_attached_file :avatar, :styles => { :thumb => "65x65>" },   :storage => :s3,   :s3_credentials => "#{rails_root}/config/s3.yml",   :bucket => "doweet-image",    :path => ":attachment/:id/:style.:extension" 

when i'm uploading image amazon s3, , putting on view:

<%= image_tag(current_user.avatar.url(:small))%> 

the photo not show up, , when i'm copy link src photo is:

http://s3.amazonaws.com/doweet-image/avatars/1/small.jpg?1311356386 

and when going link i'm getting there error:

this xml file not appear have style information associated it. document tree shown below. <error> <code>accessdenied</code> <message>access denied</message> <requestid>152ebfc9033e6633</requestid> <hostid> iw3zwxucc6jjpajig+pbvqqbliln4dmty4voovo5cvkch3o/mn3vdawxbi6zd5np </hostid> </error> 

go s3 bucket , make sure folder has read access all. looks finding image, doesn't have read access.

if using mac, i'd suggest transmit, i'm sure going through web interface suffice.


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -