Hi,
A bit ashamed to ask an obvious question : how do I enable file upload, so that I can add images to my wiki ?
upload is disabled by default, I did not find anywhere how to enable it...
booo, that's a lame question...
--P
P. Barthelemy wrote:
A bit ashamed to ask an obvious question : how do I enable file upload, so that I can add images to my wiki ?
upload is disabled by default, I did not find anywhere how to enable it...
That is a bit of a lame question, but we'll answer it anyway. :)
Most of your customizations, the ones that aren't set in the database, anyway, are defined through your LocalSettings.php file. This is a normal text file, so just get your favorite editor. You can add lines from includes/DefaultSettings.php to LocalSettings.php and edit those to customize your wiki however you like.
In this case, the line (something like $wgDisableUploads = true;) is already in there and just waiting for you to change the value to "false". Don't forget to keep the semicolon at the end.
You may want to backup that file before you go stomping around in there. I know I've wanted to have done that *after* I've been stomping.
Good luck, and never underestimate the power of the handbook on meta.wikipedia.org!
Hínandil
On 09/05/05, P. Barthelemy philippe.barthelemy_gmane@gadz.org wrote:
A bit ashamed to ask an obvious question : how do I enable file upload, so that I can add images to my wiki ?
Look in LocalSettings.php for a setting called "$wgDisableUploads"; there should be comments around it explaining how to use it, what other steps to take, and related options should be nearby.
If I'm wrong about it automatically being in LocalSettings.php, look in includes/DefaultSettings.php instead and *copy relevant options to LocalSettings.php* (never edit DefaultSettings directly, simply override relevant parts with your own LocalSettings file).
On May 9, 2005, at 3:17pm, Rowan Collins wrote:
On 09/05/05, P. Barthelemy philippe.barthelemy_gmane@gadz.org wrote:
A bit ashamed to ask an obvious question : how do I enable file upload, so that I can add images to my wiki ?
Look in LocalSettings.php for a setting called "$wgDisableUploads"; there should be comments around it explaining how to use it, what other steps to take, and related options should be nearby.
If I'm wrong about it automatically being in LocalSettings.php, look in includes/DefaultSettings.php instead and *copy relevant options to LocalSettings.php* (never edit DefaultSettings directly, simply override relevant parts with your own LocalSettings file).
You should also have a look at "Documentation:Security; Securing the upload directory" on Meta:
John Blumel
mediawiki-l@lists.wikimedia.org