https://bugzilla.wikimedia.org/show_bug.cgi?id=20924
Summary: certain mac word (2000) .doc files are incorrectly detected as application/zip Product: MediaWiki Version: 1.14.0 Platform: All OS/Version: All Status: NEW Severity: normal Priority: Normal Component: Uploading AssignedTo: wikibugs-l@lists.wikimedia.org ReportedBy: ni...@symbian.org I have a downstream bug that I've been working on for an MW 1.14 installation. Certain users can't upload most of their MS Word documents. These are NOT the .docx XML-based formats but the older type. It turns out that users would receive the error even with a BLANK document saved. I've attached an example of this for people to reproduce the bug. The error received is the message: "The file is corrupt or has an incorrect extension. Please check the file and upload again." Debugging locally has shown that these files are being identified as: mime: <application/zip> extension: <doc Clearly with MIME-type/extension verification turned on this will fail giving the error they see. The question is why is this being found as "application/zip"? (Furthermore, the workaround I read about / had planned, using $wgMimeDetectorCommand to externally check the MIME-type, is no good as MimeMagic::guessMimeType() calls doGuessMimeType FIRST, and any (false) positives will then NOT call detectMimeType(), which seems to work correctly) -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l