Last modified: 2010-05-15 15:48:23 UTC
PNG images are prevented from being uploaded. Other image formats work fine. The error message is: Upload warning The file is corrupt or has an incorrect extension. Please check the file and upload again. My $wgFileExtensions looks like: $wgFileExtensions = array('jpg','png','jpeg','gif','ogg','doc','xls','ppt','mp3' ,'odt','ods','pdf'); The problem seems to stem from the following line in the verify() function in includes/SpecialUpload.php: $mime= $magic->guessMimeType($tmpfile,false); $mime comes back as "text/plain" which doesn't match the extension "png".
I should add that this is on Fedora Core 6.
Please read the FAQ before filing bug reports - see http://www.mediawiki.org/wiki/FAQ#.22File_is_corrupt_or_has_an_invalid_extension.22 The cause is mostly likely a misconfigured php module.