Morning all,
I've installed a fresh copy of Mediawiki on an Ubunto 7.10 server. This is on a private network.
Here is the Version output:-
* MediaWiki: 1.11.0 * PHP: 5.2.3-1ubuntu6.3 (apache2handler) * MySQL: 5.0.45-Debian_1ubuntu3.1-log
I'm having trouble with the Upload Files option.
I'm trying to upload a .png image file. Initially when selected I was getting a message along the lines of an invalid filetype despite png being an allowed extension. I disabled mimetype checking to get round this.
Now I receive the following emssage whenever I try to upload anything:-
Upload warning This file contains HTML or script code that may be erroneously be interpreted by a web browser.
Any ideas how I can correct this?
The images directory on my server is publically writeable.
Rob
Does anyone have any ideas on this one...?
I cannot seem to work out what is happening on this install.
Rob
Rob Sharp wrote:
Morning all,
I've installed a fresh copy of Mediawiki on an Ubunto 7.10 server. This is on a private network.
Here is the Version output:-
* MediaWiki: 1.11.0 * PHP: 5.2.3-1ubuntu6.3 (apache2handler) * MySQL: 5.0.45-Debian_1ubuntu3.1-log
I'm having trouble with the Upload Files option.
I'm trying to upload a .png image file. Initially when selected I was getting a message along the lines of an invalid filetype despite png being an allowed extension. I disabled mimetype checking to get round this.
Now I receive the following message whenever I try to upload anything:-
Upload warning This file contains HTML or script code that may be erroneously be interpreted by a web browser.
Any ideas how I can correct this?
The images directory on my server is publically writeable.
Rob
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
On 28/01/2008, Rob Sharp rob@boringbutgood.com wrote:
Does anyone have any ideas on this one...?
I cannot seem to work out what is happening on this install.
Rob
Rob Sharp wrote:
Morning all,
I've installed a fresh copy of Mediawiki on an Ubunto 7.10 server. This is on a private network.
Here is the Version output:-
* MediaWiki: 1.11.0 * PHP: 5.2.3-1ubuntu6.3 (apache2handler) * MySQL: 5.0.45-Debian_1ubuntu3.1-log
I'm having trouble with the Upload Files option.
I'm trying to upload a .png image file. Initially when selected I was getting a message along the lines of an invalid filetype despite png being an allowed extension. I disabled mimetype checking to get round this.
Now I receive the following message whenever I try to upload anything:-
Upload warning This file contains HTML or script code that may be erroneously be interpreted by a web browser.
Any ideas how I can correct this?
The images directory on my server is publically writeable.
Rob
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,
Herta
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,
Herta
Hi Herta,
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.
Rob
mediawiki-l@lists.wikimedia.org