Adding this code to LocalSettings.php will allow you to upload different filetypes to your wiki.

$wgFileExtensions = array_merge( $wgFileExtensions, array( 'pdf', 'ppt', 'doc', 'docx', 'xls', 'xlsx' ) );

To allow uploads you also need to change the owner of the folder to www-data.

# type in shell
chown -R www-data /var/www/wiki/images/


Leave a Reply

Your email address will not be published. Required fields are marked *