Media Wiki Enable and Configure Image Uploads: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
(Created page with "=External= * https://www.mediawiki.org/wiki/Manual:Configuring_file_uploads =Internal= * Media_Wiki_Native_Installation#Increase_the_Maximum_Size_for_Uploaded_Files|Increase...")
 
No edit summary
 
(6 intermediate revisions by the same user not shown)
Line 2: Line 2:
* https://www.mediawiki.org/wiki/Manual:Configuring_file_uploads
* https://www.mediawiki.org/wiki/Manual:Configuring_file_uploads
=Internal=
=Internal=
* [[Media_Wiki_Native_Installation#Increase_the_Maximum_Size_for_Uploaded_Files|Increase the Maximum Size for Uploaded Files]]
* [[Media_Wiki_Operations#Enable_and_Configure_Image_Uploads|Media Wiki Operations]]
* [[Media_Wiki_Installation#Increase_the_Maximum_Size_for_Uploaded_Files|Increase the Maximum Size for Uploaded Files]]


=Overview=
=Overview=
Line 10: Line 11:
To enable:  
To enable:  


1. Configure php.in as follows:
1. Configure [[Media_Wiki_Concepts#php.ini|php.ini]] as follows:
<syntaxhighlight lang='php'>
<syntaxhighlight lang='php'>
file_uploads = On
file_uploads = On
</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>

Latest revision as of 20:01, 30 December 2023

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