I'd like to be able to upload and link to files such as document.doc, spreadsheet.xls (as in TWiki) but it seems gumax only allows .jpg, .png or .ogg to be uploaded. How do I change the skin to allow the former?
Many thanks!
WW
How do I upload files in other formats?
Re: How do I upload files in other formats?
This is a setting in LocalSettings.php, add following in your LocalSettings.php.
Code: Select all
$wgFileExtensions = array('gif','png','jpg','jpeg','svg','xls','doc','pdf','mp3','flv');
Re: How do I upload files in other formats?
Many thanks for this quick reply. I had since put that line into my mediawiki/includes/DefaultSettings.php file but that will I suppose be overwritten by the next mediawiki upgrade, so its helpful to know the same thing works in LocalSettings.php
Thanks again,
WW
Thanks again,
WW
Re: How do I upload files in other formats?
You are not supposed to change anything in DefaultSettings.php, anything that you need, you should override them in LocalSettings.php.