On localhost images upload successfully but on server it gives an error
has an extension that does not match its content
use.rb
has_attached_file :profile_picture, {
styles: {
original: "1400>",
medium: "400>",
thumb: "150>"
},
path: "/users/profile_pictures/:hash.:style.:extension",
hash_secret: "um cavalo morto é um animal sem vida, um cavalo morto é um animal sem vida!",
storage: :s3,
s3_credentials: S3_CREDENTIALS,
}
validates_attachment_content_type :profile_picture, :content_type => ["image/jpg", "image/jpeg", "image/png", "image/gif"]
I can't understand what the issue is