Jordan Warbelow-Feldstein
Jordan Warbelow-Feldstein

Reputation: 10748

Rails, Paperclip & S3: The specified key does not exist

I've got Paperclip configured like so:

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']
    }
  }

But my uploads' urls 404 with:

The specified key does not exist.

It looks like:

enter image description here

Upvotes: 2

Views: 2133

Answers (1)

Nesha Zoric
Nesha Zoric

Reputation: 6620

It would mean that file doesn't exist on Amazon S3 to where you are point the image url to. Did you check the url path?

Upvotes: 1

Related Questions