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.

IC
InMotion Hosting Contributor Content Writer II

InMotion Hosting contributors are highly knowledgeable individuals who create relevant content on new trends and troubleshooting techniques to help you achieve your online goals!

More Articles by InMotion Hosting

Was this article helpful? Join the conversation!

Questions about our MailChannels Deployment? We have answers and are here to help!Learn More
+