Is there a preference where we can enforce the size limit on uploads to the wiki? Yesterday, I had a newbie who uploaded a 1.2 *megabyte* BMP image to the site. It would be useful if users were not permitted to override the "recommended" size setting. Is there a preference where I can set that?
Thanks, Dan Carlson http://memoryalpha.st-minutiae.com/
We fixed a 200k limit on Wikinfo. I don't like it much as I think I am one of the offenders myself. This coding is in GetWiki at:
http://www.wikinfo.org/wiki.phtml?title=GetWiki
email mrm.parrott@rimric.com to get specifics on it.
Fred
From: Dan Carlson minutiaeman@st-minutiae.com Reply-To: MediaWiki announcements and site admin list mediawiki-l@Wikimedia.org Date: Mon, 29 Mar 2004 15:29:02 -0500 To: MediaWiki announcements and site admin list mediawiki-l@Wikimedia.org Subject: [Mediawiki-l] Image Size Limit?
Is there a preference where we can enforce the size limit on uploads to the wiki? Yesterday, I had a newbie who uploaded a 1.2 *megabyte* BMP image to the site. It would be useful if users were not permitted to override the "recommended" size setting. Is there a preference where I can set that?
Thanks, Dan Carlson http://memoryalpha.st-minutiae.com/
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
On Mar 29, 2004, at 12:29, Dan Carlson wrote:
Is there a preference where we can enforce the size limit on uploads to the wiki? Yesterday, I had a newbie who uploaded a 1.2 *megabyte* BMP image to the site. It would be useful if users were not permitted to override the "recommended" size setting. Is there a preference where I can set that?
The system-wide PHP settings enforce a strict upload size limit. (The default I believe is 2 megabytes.) Or, if you can't change that, you can fiddle with the code...
I haven't tested this, but it ought to work. Change: if ( ( ! $wpIgnoreWarning ) && ( $wpUploadSize > 150000 ) ) { return uploadWarning( WfMsg( "largefile" ) ); }
to if ( $wpUploadSize > 150000 ) { return uploadError( WfMsg( "largefile" ) ); }
Let me know if it does work, I'll poke in another setting for it.
-- brion vibber (brion @ pobox.com)
mediawiki-l@lists.wikimedia.org