Enabling user image uploads in MediaWiki
Written by James RichardsonBy 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:
/public_html/mediawiki/images
Change the permissions on the folder to 775 and Save.
Next, navigate to the following file:
public_html/mediawiki/LocalSettings.php
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.
Now there will be an Embedded file icon in the WYSIWYG editor. See image to the right.
You will also have available the "Upload file" link available in the navigation to the left of your MediaWiki.
For more information on insetting images into MediaWiki, please see the next tutorial on How to insert images in MediaWiki.
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 |
Latest Questions
Need more Help?
Search
Ask the Community!
Current Customers
| Chat: | Click to Chat Now | E-mail: | support@InMotionHosting.com |
|---|---|---|---|
| Call: | 888-321-HOST (4678) | Ticket: | Submit a Support Ticket |

