> For MediaWiki, it could be better if the following variables are > properly set in the configuration file LocalSettings.php and its > relevant, custom-made command is installed to do the file content > detection for some relatively new file format like ODF, OOXML, ... > which are somewhat not appropriately determined by the current > popular commands such as 'file' and 'mimetype'
This will only affect uploads to the Wiki, and is already mostly in place. Some Wiki magic already harvested the changes I made to the apache2/conf/mime.types file, and included them into the MediaWiki mime.types file. This makes the maintenance super easy.. change in apache config is propagated to MediaWiki. > MIME types which will be returned by the $wgMimeDetectorCommand and > its corresponding file name extension should be listed in > includes/mime.types of MediaWiki installation set so that the > MediaWiki can check if the extension of questioned, under-being-uploading > file has correct contents. I've added $wgMimeDetectorCommand = "file -bi"; to the LocalSettings.php file, If anyone notices any problems (there is a potential for some odd php errors if php has been misconfigured) I can disable the option and look at the php config in more detail. As far as I can see in a quick check it looks like it should work ok as-is. C. -- Clayton Cornell [email protected] OpenOffice.org Documentation Project co-lead StarOffice - Sun Microsystems, Inc. - Hamburg, Germany --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
