Author: ramiller
Description:
I have been wrestling with this issue for some time now. The Mediawiki version
is actually 1.4.14, but this has been an issue for some time now. When a user
tries to upload an image (png, jpg, gif), we're not trying to do anything weird,
they get a "The file is corrupt or has an incorrect extension. Please check the
file and upload again." error. I've read the FAQ:
http://meta.wikimedia.org/wiki/MediaWiki_FAQ#When_I_try_to_upload_files_in_Mediawiki_1.5_I_always_get_a_.22The_file_is_corrupt_or_has_an_incorrect_extension._Please_check_the_file_and_upload_again..22_error.
and
http://meta.wikimedia.org/wiki/Uploading_files#The_file_is_corrupt_or_has_an_incorrect_extension._Please_check_the_file_and_upload_again.
To troubleshooot I'd temporarily set $wgVerifyMimeType = false; in
LocalSettings.php That did not help. I've explicitly set $wgFileExtensions =
array('gif','png','jpg','jpeg'); in LocalSettings.php That did not help. The
directory permissions are chmod -rwx for owner and group, but nothing for
others. I've asked in #mediawiki about this issue, verified a few test files
were not corrupt using the program xv (which they said was good at verifying the
validity of a file). Still I get these errors. I've doublechecked the Whitelist
and Blacklist in DefaultSettings.php I'm really out of ideas.
Version: unspecified
Severity: minor
OS: Linux
Platform: PC
URL: http://www.yoper.com/wiki/index.php/Special:Upload