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.
Name |
Last commit
|
Last Update |
---|---|---|
.. | ||
abstract_adapter_spec.rb | Loading commit data... | |
attachment_adapter_spec.rb | Loading commit data... | |
data_uri_adapter_spec.rb | Loading commit data... | |
empty_string_adapter_spec.rb | Loading commit data... | |
file_adapter_spec.rb | Loading commit data... | |
http_url_proxy_adapter_spec.rb | Loading commit data... | |
identity_adapter_spec.rb | Loading commit data... | |
nil_adapter_spec.rb | Loading commit data... | |
registry_spec.rb | Loading commit data... | |
stringio_adapter_spec.rb | Loading commit data... | |
uploaded_file_adapter_spec.rb | Loading commit data... | |
uri_adapter_spec.rb | Loading commit data... |