How do I upload files in other formats?

Use this forum to ask questions about how to do things in GuMax skin.
Post Reply
User avatar
wwalsh
Rank 1
Rank 1
Posts: 6
Joined: January 18th, 2008, 9:01 pm

How do I upload files in other formats?

Post by wwalsh »

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
User avatar
Paul
Development Team Leader
Development Team Leader
Posts: 1132
Joined: October 20th, 2007, 2:23 pm

Re: How do I upload files in other formats?

Post by Paul »

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');
:mrgreen:
User avatar
wwalsh
Rank 1
Rank 1
Posts: 6
Joined: January 18th, 2008, 9:01 pm

Re: How do I upload files in other formats?

Post by wwalsh »

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
User avatar
Paul
Development Team Leader
Development Team Leader
Posts: 1132
Joined: October 20th, 2007, 2:23 pm

Re: How do I upload files in other formats?

Post by Paul »

You are not supposed to change anything in DefaultSettings.php, anything that you need, you should override them in LocalSettings.php.
Post Reply