[Mediawiki-l] Problem uploading Files
rob at boringbutgood.com
Mon Jan 28 10:25:21 UTC 2008
Herta Van den Eynde wrote:
> Curious, png 1.11.0 normally supports .png out of the box.
> What is $wgFileExtensions in ./includes/DefaultSettings.php set to?
> Rather than disabling mimetype checking, you'd normally add the
> filetypes you want to allow to LocalSettings.php
> $wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg', 'doc', 'ppt',
> 'xls', 'pdf', 'msg', 'svg' );
> Kind regards,
Your email prompted me to put everything back to default so that I
could document the changes I had made, and what error messages I
received as I went through.
The initial error message I received was:-
"The file is corrupt or has an incorrect extension. Please check the
file and upload again."
It turns out that my source file actually *was* corrupt. The png I was
trying to upload isn't readable in any image viewer, so there seems to
be nothing wrong with the file upload procedure.
Sorry for wasting your time, and thank you for prompting me to take
this back to basics.
More information about the MediaWiki-l