The freedesktop magic doesn't work for the Office 2007+ files, it detects them all as application/zip. I have magic which detects them, but it requires looking at 2,000 byte ranges, too much for their project (which has to support things like file browsers). Since you already warn that `by_magic` is slow, it'd be nice to support it here at least. This would allow the paperclip project to use mimemagic and stop relying on the `file` binary: - https://github.com/thoughtbot/paperclip/issues/1530#issuecomment-43375497 Support is enabled through an overlay, required with require 'mimemagic/overlay' Documentation is in the README
Name |
Last commit
|
Last Update |
---|---|---|
.. | ||
application.gzip | Loading commit data... | |
application.vnd.openxmlformats-officedocument.spreadsheetml.sheet | Loading commit data... | |
application.x-bzip | Loading commit data... | |
application.x-ruby | Loading commit data... | |
application.x-tar | Loading commit data... | |
application.zip | Loading commit data... | |
image.jpeg | Loading commit data... | |
image.png | Loading commit data... |