Closed gabriel-v closed 7 years ago
libmagic, that is.
Might be worth doing: use regexes on MAGIC_DESCRIPTION_TYPES in case the found descriptions will change (because more metadata is found).
MAGIC_DESCRIPTION_TYPES
Since we're going to the trouble of calling libmagic, can we save the content type for the document? It would be good to have Document.content_type as single source of truth.
Document.content_type
libmagic, that is.
Might be worth doing: use regexes on
MAGIC_DESCRIPTION_TYPES
in case the found descriptions will change (because more metadata is found).