All kinds of file uploads to MediaWiki
I'm using a MediaWiki install to work on the always-changing documentation of a current project. The default install doesn't allow file uploads at all. Here's what I had to do:
First, chmod a+w images in the wiki root directory. Now users can upload all kinds of files that are not blacklisted in MediaWiki. Unfortunately we need to store .doc Word documents too in the wiki, so I needed another step. After some googling I've found the info in an archive of the wikitech-list:
# If this is turned off,These lines are from the DefaultSettings.php file, but you're not advised to make changes there. Instead, just copy them to LocalSettings.php, and set the variable to false.
# users may override the warning for files not
# covered by $wgFileExtensions.
$wgStrictFileExtensions = true;
After this, uploads of any file format are immediately available to every user of the wiki. Since I'm controlling access at the Apache level, that's exactly what I wanted.

0 Comments:
Post a Comment
<< Home