我正在使用Paperclip在我的应用程序中上传图像。 我的验证内容如下:
validates_attachment_content_type :image, :content_type => ['image/jpg','image/jpeg', 'image/png', 'image/tiff', 'image/gif']
在Firefox、Chrome和IE9中一切正常。但是在IE8中,我收到了一个错误提示 - "Photos image content type Invalid format !!!"
非常感谢任何解决方案或线索。
validates_attachment_content_type :image, :content_type => ['/image/jpg','/image/jpeg', '/image/png', '/image/tiff', '/image/gif']
。但现在照片上传在任何浏览器中都无法工作。我错过了什么吗? - safalmj