On 10/06/12 11:58, François Chenais wrote:
hello all,
I'm trying to configure madiawiki 1.18.1 for xls upload.
The OS is CentOS 6.2.
I've set wgFileExtension in LocalSettings.php according to manual.
- It's working on a VM I'm hosting on my computer
- It's not working on the provider's hosting solution (1).
I have a MIME detection error while uploading an xls file.
The returned error is :
File extension ".xls" does not match the detected MIME type of the
file (text/plain).
I've red the differents mediawiki manual pages and FAQ but I don't
unterstand what happens...
Any idea ?
Looks like the file command used in the host doesn't know xls.
You could try uploading your own magic.mgc and adding -m FUllPATH to
$wgMimeDetectorCommand.
The $wgMimeDetectorCommand is set to null so is not used for the MIME
detection.