paperclip.rb
9.85 KB
-
Prefer the mimemagic gem for content type detection · 2a0274d1
Prioritize MimeMagic over the `file` binary for content type detection when it finds a match. Fall back to `file` if MimeMagic can't match anything. `file` incorrectly detects Open Office XML files (e.g., xlsx, docx) as zip since they're implemented as zipped archives of xml files. MimeMagic detects them properly.
Stephen Pike committed