file-type
file-type copied to clipboard
*.docm was detected was *.docx
file-type detecting *.docm as *.docx. I don't see file-type to support docm or I miss something? Thanks
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.
"docx" is used for macro-free (non-template) documents, while "docm" is used for macro-enabled (non-template) documents.
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
actually internally (inside the docm document) docm has
application/vnd.ms-word.document.macroEnabled.main+xmlas indicated by the entry for/word/document.xmlfor[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.