Last modified: 2011-01-25 00:19:21 UTC
Uploading a JPEG image results always in the following error message: 'File extension does not match MIME type.' I am able to reproduce the issue with all kind of JPEG pictures (i.e. my own, from Google Images, from Wikipedia, etc.) Please let me know if you need further information, thank you.
In German, the error message is the following: 'Dateierweiterung stimmt nicht mit dem MIME-Typ überein.' The issue is reproducible with the latest SVN version of MediaWiki.
Same here (MW 1.17alpha (r63735)) with a PNG file. In upload/UploadBase.php the 'verifyFile' function debug shows: "mime: <image/png> extension: <>" Thank you
Can you give a link to a specific image that causes this error?
(In reply to comment #3) > Can you give a link to a specific image that causes this error? http://zrhwiki.ch/tmp/test.jpg
(In reply to comment #0) > Uploading a JPEG image results always in the following error message: > > 'File extension does not match MIME type.' > > I am able to reproduce the issue with all kind of JPEG pictures (i.e. my own, > from Google Images, from Wikipedia, etc.) > > Please let me know if you need further information, thank you. The issue is not limited to JPEG pictures, all uploads are affected.
Does your debug log tell you more about the mime type? The file you linked was correctly identified as image/jpeg on my test wiki.
I am no longer able to reproduce the problem. The reason might be a recent web server update, i.e. the old configuration might have caused the problem. Thank you for your help!