Media Wiki Enable and Configure Image Uploads: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 15: Line 15:
</syntaxhighlight>
</syntaxhighlight>
If this is not set, PHP scripts cannot use the upload functions, and MediaWiki's uploads will not be enabled.
If this is not set, PHP scripts cannot use the upload functions, and MediaWiki's uploads will not be enabled.
2. In [[Media_Wiki_Concepts#LocalSettings.php|LocalSettings.php]] set:
<syntaxhighlight lang='php'>
$wgEnableUploads = true; # Enable uploads
</syntaxhighlight>

Revision as of 04:17, 27 December 2020

External

Internal

Overview

File uploads are initially disabled.

To enable:

1. Configure php.ini as follows:

file_uploads = On

If this is not set, PHP scripts cannot use the upload functions, and MediaWiki's uploads will not be enabled.

2. In LocalSettings.php set:

$wgEnableUploads = true; # Enable uploads