Closed cicihou closed 4 years ago
This is dependent on the version of libmagic you are using and/or the magic definition file. e.g, with debian bullseye (libmagic 5.38) I get this:
magic.from_buffer(open('1589875593-1588909884- E8AFB4E6988EE4B9A6E585B7E4BD93E8A681E6B182.docx', 'br').read(), mime=True) 'application/vnd.openxmlformats-officedocument.wordprocessingml.document'