View Issue Details

IDProjectCategoryView StatusLast Update
0000565fileGeneralpublic2025-11-24 09:05
Reporterjonsoft Assigned Tochristos  
PrioritynormalSeverityminorReproducibilityalways
Status feedbackResolutionopen 
Summary0000565: docx file content type is detected as application/octet-stream
DescriptionSimilar to 0000517, the attached file identifies as:
testWordDocument.docx: Microsoft OOXML

or with --mime-type:
testWordDocument.docx: application/octet-stream

instead of a more specific Word document type.
Steps To ReproduceCheck out latest master branch of file.
Run:
file testWordDocument.docx
file --mime-type testWordDocument.docx
Additional InformationThe underlying issue appears to relate to the order of entries in the zip file.
TagsNo tags attached.

Activities

jonsoft

2024-09-30 14:30

reporter  

testWordDocument.docx (29,018 bytes)

christos

2024-11-10 14:50

manager   ~0004095

That is correct, it is related to the order of the zip entries. What program created this file?

GFF-DS

2025-11-24 09:05

reporter   ~0004318

The attached file was

1. created with LibreOffice 25.8 and saved as a Word 2010-365 Document (.docx).
file --mime test.docx
correctly outputs
application/vnd.openxmlformats-officedocument.wordprocessingml.document; charset=binary

2. opened with Microsoft Word for Mac 16.100.4 and saved as a Word 2010-365 Document (.docx).
file --mime test.docx
correctly outputs
application/vnd.openxmlformats-officedocument.wordprocessingml.document; charset=binary

3. opened with LibreOffice 25.8 and saved as a Word 2010-365 Document (.docx).
file --mime test.docx
wrongly outputs
application/octet-stream; charset=binary
test.docx (8,907 bytes)

Issue History

Date Modified Username Field Change
2024-09-30 14:30 jonsoft New Issue
2024-09-30 14:30 jonsoft File Added: testWordDocument.docx
2024-11-10 14:50 christos Assigned To => christos
2024-11-10 14:50 christos Status new => assigned
2024-11-10 14:50 christos Status assigned => feedback
2024-11-10 14:50 christos Note Added: 0004095
2025-11-24 09:05 GFF-DS Note Added: 0004318
2025-11-24 09:05 GFF-DS File Added: test.docx