How to Enable File Uploads in MediaWiki

MediaWiki integrates files you upload fairly easily. However, by default the ability to upload files is disabled. In this guide, you can learn how to enable file uploads in MediaWiki

  1. Using an FTP client or cPanel’s File Manager, locate and edit the file named LocalSettings.php. This file, by default, is located in the root directory for your MediaWiki installation.

  2. ## To enable image uploads, make sure the 'images' directory ## is writable, then set this to true: $wgEnableUploads = false; #$wgUseImageMagick = true; #$wgImageMagickConvertCommand = "/usr/bin/convert";
  3. Modify the false value to true and be sure to save your changes.

Congratulations! Now, you know how to enable file uploads in MediaWiki. To learn more about using images in MediaWiki, be sure to check out our guide on how to insert images into MediaWiki.

JB
John-Paul Briones Content Writer II

John-Paul is an Electronics Engineer that spent most of his career in IT. He has been a Technical Writer for InMotion since 2013.

More Articles by John-Paul

Was this article helpful? Join the conversation!

Server Madness Sale
Score Big with Savings up to 99% Off

X