Enabling user image uploads in MediaWiki
By default. MediaWiki does not have the embedded image function enabled for users to upload images to your wiki site. In order to get the capability to upload images into the MediaWiki pages working, you will need to change the permissions of the images folder and enable the "$wgEnableUploads" setting in the LocalSettings.php. The following will explain the steps to allow users to upload and insert images and other media to your MediaWiki site.
Enabling image embedding in MediaWiki
- Login into your cPanel
- Go to the File Manager, select your MediaWiki installation location and click Go.
- Navigate to the following folder:
Change the permissions on the folder to 775 and Save.
- Next, navigate to the following file:
Select the file and edit it with the code editor.
- Find the following line in your LocalSettings.phpfile.
## To enable image uploads, make sure the 'images' directory ## is writable, then set this to true: $wgEnableUploads = false;
Set "$wgEnableUploads" to true so it looks like the following:
$wgEnableUploads = true;
Save the changes.
- Log into MediaWiki.
Find a page to edit to insert an image into. Click Edit.
For more information on insetting images into MediaWiki, please see the next tutorial on How to insert images in MediaWiki.
We value your feedback!
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
new! - Enter your name and email address above and we will post your feedback in the comments on this page!
Adding content to MediaWiki
Working with namespaces and pages
|1.||How to create pages in MediaWiki|
|2.||How to edit MediaWiki pages|
|3.||Adding pages to MediaWiki namespaces|
|4.||Deleting and restoring pages in MediaWiki|
|5.||Adding and removing redirects in MediaWiki|
Formatting and inserting content
|6.||How to format content in MediaWiki|
|7.||Enabling user image uploads in MediaWiki|
|8.||How to insert images into MediaWiki|
|9.||Formatting images in MediaWiki|
|10.||Creating an Image Gallery in MediaWiki|