Hi list
i'm trying to upload some xml files on a mediawiki 1.6.9 (can't upgrade cause there is no php5).
i've set the following variables:
$wgEnableUploads = true; $wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg', 'ppt', 'pdf', 'pub', 'doc', 'xls', 'xml', 'zip'); $wgStrictFileExtensions = false;
and in the php.ini file i've set "file_uploads = on" but i still get the following error, when i try to upload a xml-file (.xml) i get the following error:
"The file is corrupt or has an incorrect extension. Please check the file and upload again."
does anyone know this problem?
regards martin
Martin Weissen wrote :
$wgEnableUploads = true; $wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg', 'ppt', 'pdf',...
all I can say is "it works for me" with the same parameters in LocalSettings.php
you can try to put $wgMimeDetectorCommand= "file -bi"; in LocalSettings.php in case there is a problem with the mime detector of Mediawiki
(you must have "file" installed of course)
mediawiki-l@lists.wikimedia.org