To enable uploads, edit the LocalSettings.php file in your MediaWiki install directory, and change the line reading
$wgEnableUploads = false; to
$wgEnableUploads = true;.
MediaWiki by default allows uploads of images with the following extensions: png, gif, jpg, and jpeg. To upload more file types, you will also need to add lines such as
$wgFileExtensions = 'doc'; $wgFileExtensions = 'pdf';
for each extension (.doc and .pdf in this example) you would like to allow your site to upload. You can add these lines anywhere after the line starting with require_once and before the ?> at the end of the file.
Certain file types, such as .zip, cannot be properly uploaded with the default file-type detection system. If you have problems uploading certain file types, you may need to use an additional file-type detector, named “file”, with this command:
$wgMimeDetectorCommand = 'file -bi';
|Previous:||Why shouldn't I use scripts.mit.edu/~locker URLs?|
|Next:||How do I reset my password for MediaWiki?|
These pages may be reused under either the GFDL 1.2 or CC-BY-SA 3.0.
Questions? Contact firstname.lastname@example.org.
You are currently connected to pancake-bunny.mit.edu.