2012/6/11 François Chenais <[email protected]> > > > 2012/6/10 Platonides <[email protected]> > >> 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. > > Ok ! It works after setting 'file -bi' to $wgMimeDetectorCommand.
But, why is this working with the null value on my VM ? What is the difference between the 2 ways for detection ? Thanks a lot > François > > > > > > > > > > >> _______________________________________________ >> MediaWiki-l mailing list >> [email protected] >> https://lists.wikimedia.org/mailman/listinfo/mediawiki-l >> > > _______________________________________________ MediaWiki-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
