[Mediawiki-l] Is there a way to limit the size of images uploaded

Emufarmers Sangly emufarmers at gmail.com
Fri Jan 4 23:09:02 UTC 2008


This will work, but you might want to find out what's causing the errors in
the first place and tackle the original problem.  What are the warnings and
errors you're getting?  What image renderer are you using?


-- 
Arr, ye emus, http://emufarmers.com

On Jan 4, 2008 1:50 PM, Boris Epstein <borepstein at gmail.com> wrote:

> Itay,
>
> There are two parameters that determine how big a file you can upload.
> They
> are:
>
> 1) In /etc/php.ini:
> upload_max_filesize = 2M
> determines the maximum size of a file that PHP on your machine will take.
> Modify that first.
>
> 2) In ./includes/DefaultSettings.php
> $wgMaxUploadSize = 1024*1024*100; # 100MB
> MediaWiki specific upload size limit
>
> Hope this helps.
>
> Boris.
>
> On Jan 4, 2008 12:25 PM, Itay Ophir <itay at worldwideworkshop.org> wrote:
>
> > Hi,
> >
> >
> >
> > I noticed that when users upload large images (over 300K) the wiki has
> > problems creating the thumbnails for them and sometimes I even get error
> > messages.
> >
> >
> >
> > So, my question is - is there a way to limit the size of Only images
> that
> > user upload?? Maybe using a filter for the file extension (gif,jpeg..)
> >
> >
> >
> > Thanks a lot,
> >
> >
> >
> > Itay Ophir
> >
> >
> >
> > _______________________________________________
> > MediaWiki-l mailing list
> > MediaWiki-l at lists.wikimedia.org
> > http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
> >
>
>
>
> --
> Boris Epstein
> http://www.dogandponny.org/
> http://dikayasobaka.livejournal.com/ (Russian)
>


More information about the MediaWiki-l mailing list