Last modified: 2014-07-04 17:05:32 UTC
Getting next message when trying to upload a .json file : L'extension du fichier « .json » ne correspond pas au type MIME détecté du fichier (text/plain). 'filetype-mime-mismatch'
Hi, does the file "mime.types" list text/plain json ? See https://www.mediawiki.org/wiki/Manual:Mime_type_detection#MIME_type_validation for more information.
Hello, No, it dit not list "text/plain json" I just added it and now it works fine.
Glad it works for you! Resetting this ticket to INVALID as no code change was required.
This is technically the wrong solution. We should fix mime type detection for plain text like formats.
Also, I don't understand French, but that error sounds horribly uninformative. At a minimum, it should point the user to the manual page.
Originally my fault due to 3846d1048766a7a7ba0e57
Change 141765 had a related patch set uploaded by Brian Wolff: Fix mime detection of easily-confused-with text/plain formats https://gerrit.wikimedia.org/r/141765
Change 141765 merged by jenkins-bot: Fix mime detection of easily-confused-with text/plain formats https://gerrit.wikimedia.org/r/141765
Should be fixed in 1.24