ruby on rails - Amazon S3 - Carrierwave Image Upload -


so, i'm trying upload image rails api s3, using fog.

whenever try upload image, this:

  excon::errors::forbidden (expected(200) <=> actual(403 forbidden)   (...)   access object has been disabled 

it working in development, once switch production, receive error above. i'm using keys user i've created set full administrative permissions to.

my carrierwave.rb: require 'carrierwave'

carrierwave.configure |config|    config.fog_credentials = {     :provider               => "aws",     :region                 => "us-east-1",     :aws_access_key_id      => env['aws_access_key_id'],     :aws_secret_access_key  => env['aws_secret_access_key']   }    if rails.env.production?       config.cache_dir = "#{rails.root}/tmp/uploads"   end    config.fog_directory  = env['aws_bucket']   config.fog_public     = false end 

any ideas? in advance! :)

always make sure have right env variables , the correct s3 keys.

this problem in case.


Comments

Popular posts from this blog

apache - PHP Soap issue while content length is larger -

asynchronous - Python asyncio task got bad yield -

javascript - Complete OpenIDConnect auth when requesting via Ajax -