Reputation: 110960
I'm using Paperclip, when I upload files like PPTX or DOCX, the content_type is showing application/zip which is a incorrect MIME type. Any suggestions for fixing mime types in Rails 3?
Upvotes: 1
Views: 734
Reputation: 3505
try to use paperclip Model with this validation
validates_attachment_content_type :attachment, :content_type => [ 'application/msword', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document' ]
append other in you initializer if you need .
Upvotes: 1