Test Page

From KB Digisys
Revision as of 16:46, 17 February 2022 by Kb-admn (talk | contribs) (→‎Enable and Disable File Uploads)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Enable and Disable File Uploads[edit | edit source]

File uploads are disabled by default. Once the application is installed you can enable and disable file uploads at any time by modifying an option in the LocalSettings.php file of your MediaWiki. This is done with the option $wgEnableUploads. It should already be there. So if you open LocalSettings.php and find the following line there:

$wgEnableUploads = false;

this means that file uploads are disabled. To enable them simply replace false with true:

$wgEnableUploads = true;

In this way all users who belong to a user group that has the permission to upload files will be able to upload. By default, all registered users are allowed to upload files.

Note that there are also default file types that are allowed, so that users will not be able to upload other file types. By default only the image formats PNG, GIF, JPG, JPEG are allowed. For more information on how to add more or remove allowed file types check out the section in this tutorial on how to change the allowed file types.

You can change the user permissions for uploading files. For more information check the section in this tutorial on user upload

Image.png