Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Wikipedia: Mediawiki

Image Size Limit?

 

 

Wikipedia mediawiki RSS feed   Index | Next | Previous | View Threaded


minutiaeman at st-minutiae

Mar 29, 2004, 1:29 PM

Post #1 of 3 (134 views)
Permalink
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/


fredbaud at ctelco

Mar 29, 2004, 2:03 PM

Post #2 of 3 (129 views)
Permalink
Re: Image Size Limit? [In reply to]

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 [at] rimric to get specifics on it.

Fred



> From: Dan Carlson <minutiaeman [at] st-minutiae>
> Reply-To: MediaWiki announcements and site admin list
> <mediawiki-l [at] Wikimedia>
> Date: Mon, 29 Mar 2004 15:29:02 -0500
> To: MediaWiki announcements and site admin list <mediawiki-l [at] Wikimedia>
> 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 [at] Wikimedia
> http://mail.wikipedia.org/mailman/listinfo/mediawiki-l


brion at pobox

Mar 30, 2004, 7:20 PM

Post #3 of 3 (126 views)
Permalink
Re: Image Size Limit? [In reply to]

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)

Wikipedia mediawiki RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.