Excon::Errors::Forbidden in UsersController#update

后端 未结 2 1298
一生所求
一生所求 2021-01-23 10:18

I\'m trying to use Carrierwave to upload images to Amazon S3 to provide my users to opportunity to upload avatars.

When I add an image file and click \"Update,\" I get

相关标签:
2条回答
  • 2021-01-23 11:02

    Just in case anyone else runs into this problem, here's how it worked out for me:

    I'm using IAM users on Amazon S3, and the user whose access and secret keys I'd used for this app had no permissions. Oops . . .

    So, I gave that user Power User and Administrative permissions, and my avatars are loading properly!

    0 讨论(0)
  • 2021-01-23 11:14

    Amazon AWS Management console >> Users >> Select IAM User >> Attach Policy >> AmazonS3FullAccess

    0 讨论(0)
提交回复
热议问题