View Full Version : Disabling Image Uploads?
Mike_Smith
07-03-2007, 03:00 PM
I have tried disabling LocalSettings.php in the main directory and I also tried just commenting out the commands but neither worked.
I modified the LocalSettings.php in the main directory:
## To enable image uploads, make sure the 'images' directory
## is writable, then uncomment this:
$wgDisableUploads = true;
$wgUseImageResize = false;
$wgUseImageMagick = false;
This above did not work...How do I go about totally removing the uploading ability from users?
Regards,
Mike
Hey Mike,
There is currently no flag on the PHP side to block that kind of behavior. We're shifting that type of business logic to the C# side, see http://doc.opengarden.org/DekiWiki/Specs/Page_Permissions/Actions_and_Roles
Sorry, this forum keeps eating my responses:
it doesn't look like we have a permission flag for just UPDATE that would allow us to disable just page attachments (rights to edit a page = rights to attach a file). maybe max can pop in and offer some insight :)
SteveB
07-04-2007, 05:04 PM
Mike,
Did you want to disable uploads on just one page or across the entire site?
Mike_Smith
07-05-2007, 08:09 AM
Problem sorted...I wanted to disable uploading images to the site across the board. I was having a problem was ImagemagicK and convert.exe because it was being called for every page that was loaded for some reason (even pages without images etc) and it ended up crashing apache after a few pages. I removed imagemaicK and disabled thumbnail images in the localsettings.php and it seems to have sorted it.
Thanks again guys!
SteveB
07-05-2007, 09:12 AM
That's not good (imagemagick being called for each page). Where you using Gooseberry or Hayes?
Mike_Smith
07-09-2007, 11:26 AM
Im using Gooseberry. Convert.exe was definitely causing the problem and crashing apache. No stress about the thumbnails. Not a major disfuction :)
Powered by vBulletin™ Version 4.1.3 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.