Wiki-, upload files- and php.ini-questions

Wiki-, upload files- and php.ini-questions

Posted by: ztaafen
Posted on: 2007-06-11 07:13:00

Hi. Yesterday I registrated a Dreamhost account. I installed the Mediawiki software via the one-click-installation. Everything worked fine, but when I wanted to upload a file (image) to my wiki, I found out that file upload was disabled by default in Mediawiki.

I started to read on Mediawikis wiki. I found this article: http://www.mediawiki.org/wiki/Manual:Configuring_file_uploads

Well, I don't understand what it is I'm supposed to do to enable file uploads on my wiki. I really need it to be working. What am I supposed to do? Do I have to change any MySQL files? I'm very, very green on such a things.

Can anyone please explain to me what I am supposed to do? I'd be very happy, and even more happy if you could answer in Swedish (I'm a Swede), but I guess that is to ask for to mcuh...

Re: Wiki-, upload files- and php.ini-questions

Posted by: vicm3
Posted on: 2007-06-11 09:26:00

All you need to do is open LocalSettings.php

and add or change this this lines
## To enable image uploads, make sure the 'images' directory
## is writable, then set this to true:
$wgEnableUploads = false;

change the false for true and you're done...

Also if you need to upload more things than images only you need to define what files do you allow.

For example I use:
$wgFileExtensions = array('png', 'gif', 'jpg', 'jpeg', 'doc', 'xls', 'pdf');


Regards

Re: Wiki-, upload files- and php.ini-questions

Posted by: ztaafen
Posted on: 2007-06-11 09:30:00

Thank you so much! :)

Well, now I'm going to get ready for the WWDC 2007, won't miss Steve Jobs speach.

Tags: wikifile uploadsmediawikidreamhostguessupload filesfile uploadplease explainconfiguring