In MediaWiki version 1.5 and later, the attribute to be set resides in LocalSettings.php and is as follows:
$wgEnableUploads = true; # Enable uploads
In older versions of the software, the attribute to be set resides in LocalSettings.php, but is backwards, i.e. $wgDisableUploads. The default is as shown:
$wgDisableUploads = true; # Disable uploads
Invert the value to enable uploads:
$wgDisableUploads = false; # Enable uploads
Configuring file types
You can add to $wgFileExtensions to allow uploads of any type of file you like. If not included then the $wgFileExtension line would look something like:
$wgFileExtensions = array('png', 'gif', 'jpg', 'jpeg', 'doc', 'xls', 'pdf');
You can also set
$wgStrictFileExtensions = false;
to allow most types of file to be uploaded. There are restrictions on some blacklisted filetypes.
You need help with an application?hostlantern is specialized in hosting and supporting more than 200 scripts. Sign up for our web hosting services and let us help you with your application, 24/7!