From bb509ebaa8925a02430087183a4dc68cc8771a91 Mon Sep 17 00:00:00 2001 From: Edward Z Yang Date: Sun, 16 Jan 2011 10:27:45 -0500 Subject: [PATCH] Import from TextPattern --- faq/61.mdwn | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 faq/61.mdwn diff --git a/faq/61.mdwn b/faq/61.mdwn new file mode 100644 index 0000000..78c05f3 --- /dev/null +++ b/faq/61.mdwn @@ -0,0 +1,30 @@ +[[!meta title="How do I enable file uploads to my MediaWiki?"]] +To enable uploads, edit the LocalSettings.php file in your +MediaWiki install directory, and change the line reading +`$wgEnableUploads = false;` to `$wgEnableUploads = true;`. + +MediaWiki by default allows uploads of images with the following +extensions: png, gif, jpg, and jpeg. To upload more file types, you +will also need to add lines such as + + $wgFileExtensions[] = 'doc'; + $wgFileExtensions[] = 'pdf'; + +for each extension (.doc and .pdf in this example) you would like +to allow your site to upload. You can add these lines anywhere +after the line starting with **require\_once** and before the +**?\>** at the end of the file. + +Certain file types, such as .zip, cannot be properly uploaded with +the default file-type detection system. If you have problems +uploading certain file types, you may need to use an additional +file-type detector, named “file”, with this command: + + $wgMimeDetectorCommand = 'file -bi'; + +If you run into trouble, please check the +[MediaWiki web site](http://www.mediawiki.org/) or contact +[scripts@mit.edu](http://scripts.mit.edu/scripts@mit.edu). + + + -- 2.45.2