0

I am currently attempting to implement Amazon S3 into my rails application but am walking into an issue.

The gems i am using is CarrierWave and Fog.

This is the error i get when i try visit a file/image url.

<Error>
   <Code>AccessDenied</Code>
   <Message>Access Denied</Message>
   <RequestId>42B0F41E7EF92ACC</RequestId>
   <HostId>ESYXvkVKxnsu32LjfcsiErZ27IK44ItREPB68sBBHXqWHtzkN9fnc04oj8IzCEFg</HostId>
</Error>

This is the url my app is serving to view the image

https://vapenz-images.s3.amazonaws.com/uploads/product_image/image/2/Capture.PNG?AWSAccessKeyId=AKIAIEWRNU2VPG5SF7XQ&Signature=GcjA%2Bx46Q9wU%2BuaffhfCTLbLuAY%3D&Expires=1414545697

And here is a picture of the permissions. enter image description here

My rails app currently can upload a image to s3 but it cant view them, i am quite lost. Thanks for the help!

Francis Malloch
  • 1,074
  • 9
  • 20

0 Answers0