Difference between revisions of "Mediawiki File Uploads"
Jump to navigation
Jump to search
PeterHarding (talk | contribs) (New page: = Enabling FIle Uploads into a Mediawiki Site = Requires a bit of manual work on the LocalConfig.php file. Check oput the following links. * http://www.mediawiki.org/wiki/Manual:Mime_ty...) |
PeterHarding (talk | contribs) |
||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
= Enabling FIle Uploads into a Mediawiki Site = | =Enabling FIle Uploads into a Mediawiki Site= | ||
Requires a bit of manual work on the LocalConfig.php file. | Requires a bit of manual work on the LocalConfig.php file. | ||
Check oput the following links | <pre> | ||
# If PHP's memory limit is very low, some operations may fail. | |||
# ini_set( 'memory_limit', '20M' ); | |||
</pre> | |||
<pre> | |||
## To enable image uploads, make sure the 'images' directory | |||
## is writable, then set this to true: | |||
$wgEnableUploads = true; | |||
$wgFileExtensions = array('png', 'gif', 'jpg', 'jpeg', 'bmp', 'pdf', 'svg', 'svgz','zip', 'csv', 'pl', 'py', 'doc', 'xls', 'ppt', 'pps', 'xml'); | |||
$wgMaxUploadSize = 999999999; | |||
</pre> | |||
=Links= | |||
Check oput the following links: | |||
* http://www.mediawiki.org/wiki/Manual:Mime_type_detection | * http://www.mediawiki.org/wiki/Manual:Mime_type_detection | ||
[[Category:MediaWiki]] |
Latest revision as of 15:29, 27 May 2008
Enabling FIle Uploads into a Mediawiki Site
Requires a bit of manual work on the LocalConfig.php file.
# If PHP's memory limit is very low, some operations may fail. # ini_set( 'memory_limit', '20M' );
## To enable image uploads, make sure the 'images' directory ## is writable, then set this to true: $wgEnableUploads = true; $wgFileExtensions = array('png', 'gif', 'jpg', 'jpeg', 'bmp', 'pdf', 'svg', 'svgz','zip', 'csv', 'pl', 'py', 'doc', 'xls', 'ppt', 'pps', 'xml'); $wgMaxUploadSize = 999999999;
Links
Check oput the following links: