i have a problem with using paperclip. when i resart my rails server i can once upload a image using paperclip(success), but when i try to upload another image i'm always getting the error message: "Photo has an extension that does not match its contents". for file validation i use:
validates_attachment_content_type :photo, :content_type => ['image/jpeg', 'image/jpg', 'image/png']
i use ruby 2.0 and rails 4.1.1 and the file i try to upload is ofc an image. can someone tell me how to fix this issue?
thanks, felix.