If you are using paperclip plugin for uploading images in your rails application and you are validating image format.
Image format validation working in Firefox, safari but not in IE, even you are uploading image in correct format in IE then they showing error, image format not correct.
validates_attachment_content_type :image, :message => ‘Please upload correct format’, :content_type => %w( image/jpeg mage/png image/gif )
please refer this link http://groups.google.com/group/paperclip-plugin/browse_thread/thread/3e09d6943616ce7b
Solution For This problem:
you need to add following format in your validation
for jpeg image – image/pjepg and for png image image/x-png format add in your in validates_attachment_content_type
eg: validates_attachment_content_type :image, :message => ‘Please upload correct format’, :content_type => %w( image/jpeg image/png image/gif image/pjpeg image/x-png )
For ‘gif’ image no additional format require in IE.