lundi 1 août 2016

Can upload images but cannot view them - Paperclip and S3

I've managed to upload images to my S3 bucket through the site. I can see them show up in my bucket on the Amazon control panel, but I can´t' see them on mya page. When I get the url of images I see that:

http://ift.tt/2aqnbNg

If i change my URL like that, I can see the image: (I put "myapp" in front of s3.amazonaws.com)

http://ift.tt/2arqAyJ

My paperclip.rb

  Paperclip::Attachment.default_options[:url] = ':myapp.s3.amazonaws.com'
  Paperclip::Attachment.default_options[:path] = '/:class/:attachment/:id_partition/:style/:filename'  

My region is sa_east-1.

I already spend a couple of hours working on that. Help me please .

ps: I already see this one Paperclip S3 - Can upload images but cannot view them but it can't help me

Aucun commentaire:

Enregistrer un commentaire