8
votes
2answers
3k views

Making libmagic/file detect .docx files

As seen elsewhere, docx, xlsx and pttx are ZIPs. When uploading them to my web application, file (via libmagic andpython-magic) detects them as being ZIP. I store the contents of the file as a blob ...
1
vote
2answers
1k views

linux file -i command outputs octet/stream for every media file

On Linux / Unix Command file: " -i Causes the file command to output mime type strings rather than the more traditional human readable ones " Why does it always output "application/octet-stream" ...