Rykeer's picture

 Hello all,

We recently setup a MediaWiki server and are trying to configure it to allow us to upload other types of files, i.e. txt, .pdf, .doc, etc.  I've looked through the various articles on Mediawiki's site  (http://www.mediawiki.org/wiki/Configuring_file_uploads), but I'm confused--I can't seem to locate the correct .php or .ini file.  I am relatively new to Linux, been playing with various versions off and on for several years, but never to any real depth.  Is there a way to change this through Webmin, or how would I go about doing this?

We are currently using the latest build from this site.

Thanks in advance.

Forum: 
Alon Swartz's picture

You are looking for the configuration file:
/etc/mediawiki/LocalSettings.php
I took a quick look at the link you mentioned, and most likly the only change you need to make is adding the filetypes you require to the configuration, for example:
$wgFileExtensions = array_merge($wgFileExtensions, array('txt', 'pdf', 'doc'));
Good luck!
Rykeer's picture

Thanks alon for the reply. So do I need to place that line in a particular location in the .php file, or just add it at the end? I'm not actually finding a section for this, except for image uploads. Thanks again.

Add new comment