This validation does not work in IE 6 and 7. Because IE treats files differently,  they added extra text on them (I’ve not clear on this point why they add).

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.

Source: blog.joshsoftware.com

 

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>