i try to upload image using amazon S3, but i have this error:
AWS::S3::Errors::AccessDenied (Access Denied)
i used paperclip configuration:
config.paperclip_defaults = {
:storage => :s3,
:s3_credentials => {
:bucket => ENV['S3_BUCKET_NAME'],
:access_key_id => ENV['AWS_ACCESS_KEY_ID'],
:secret_access_key => ENV['AWS_SECRET_ACCESS_KEY']
}
}
and i set a permission like this
thank you !
EDIT:
I created another bucket and it works, but now i have this error:
NoMethodError (undefined method `first' for nil:NilClass):
ENV
vars in the Heroku config? - Richard Peck