Has anyone else seen this?
I’m using rails 3 with paperclip, when I upload a .doc it works great application/msword but when I upload a .docx the content_type is being saved as application/zip.
thoughts?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Ironically IE can have difficulty recognising the new MS Office files while other browsers recognise them fine.
In order to get IE working with these files you need to add the mime types to the server config. In Rails this is done in config/initializers/mime_types.rb
If your app is proxied through Apache and Apache serves your static assets you’ll also have to configure apache with the new mime types (and restart) as per http://bignosebird.com/apache/a1.shtml
My mime types were located at /etc/mime.types but try
locate mime.typesif you’re not sure.