file-type icon indicating copy to clipboard operation
file-type copied to clipboard

*.docm was detected was *.docx

Open Tzvetelin88 opened this issue 5 years ago • 2 comments
trafficstars

file-type detecting *.docm as *.docx. I don't see file-type to support docm or I miss something? Thanks

Tzvetelin88 avatar Nov 13 '20 07:11 Tzvetelin88

To fix this, we need to somehow differentiate between .docx and .docm which both have the same mime type, application/vnd.openxmlformats-officedocument.wordprocessingml.document.

Richienb avatar Dec 02 '20 07:12 Richienb

"docx" is used for macro-free (non-template) documents, while "docm" is used for macro-enabled (non-template) documents.

Borewit avatar Jul 29 '22 07:07 Borewit

actually internally (inside the docm document) docm has application/vnd.ms-word.document.macroEnabled.main+xml as indicated by the entry for /word/document.xml for [Content_Types].xml - however finding that out usually requires decompressing the DEFLATE-compressed entry so i'm not sure how viable this is

somebody1234 avatar Oct 20 '22 19:10 somebody1234

actually internally (inside the docm document) docm has application/vnd.ms-word.document.macroEnabled.main+xml as indicated by the entry for /word/document.xml for [Content_Types].xml - however finding that out usually requires decompressing the DEFLATE-compressed entry so i'm not sure how viable this is

Good to know, but that is unfortunately a bridge to far.

Borewit avatar Nov 01 '22 13:11 Borewit