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
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@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@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
- In ./includes/DefaultSettings.php
$wgMaxUploadSize = 1024*1024*100; # 100MB MediaWiki specific upload size limit
Note, things in DefaultSettings.php shouldn't be changed directly - copy the parameter to LocalSettings.php and change it there.
Thanks, Thomas, that's good to know. Is there a specific reason for that?
On Jan 4, 2008 2:33 PM, Thomas Dalton thomas.dalton@gmail.com wrote:
- In ./includes/DefaultSettings.php
$wgMaxUploadSize = 1024*1024*100; # 100MB MediaWiki specific upload size limit
Note, things in DefaultSettings.php shouldn't be changed directly - copy the parameter to LocalSettings.php and change it there.
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
DefaultSettings.php may change in future versions, and you want to keep your local settings even when you update MediaWiki.
Am Freitag, den 04.01.2008, 14:49 -0500 schrieb Boris Epstein:
Thanks, Thomas, that's good to know. Is there a specific reason for that?
On Jan 4, 2008 2:33 PM, Thomas Dalton thomas.dalton@gmail.com wrote:
- In ./includes/DefaultSettings.php
$wgMaxUploadSize = 1024*1024*100; # 100MB MediaWiki specific upload size limit
Note, things in DefaultSettings.php shouldn't be changed directly - copy the parameter to LocalSettings.php and change it there.
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Makes sense.
Viel dank:)
On Jan 4, 2008 3:02 PM, Kilian winkelklammern@texttheater.de wrote:
DefaultSettings.php may change in future versions, and you want to keep your local settings even when you update MediaWiki.
Am Freitag, den 04.01.2008, 14:49 -0500 schrieb Boris Epstein:
Thanks, Thomas, that's good to know. Is there a specific reason for
that?
On Jan 4, 2008 2:33 PM, Thomas Dalton thomas.dalton@gmail.com wrote:
- In ./includes/DefaultSettings.php
$wgMaxUploadSize = 1024*1024*100; # 100MB MediaWiki specific upload size limit
Note, things in DefaultSettings.php shouldn't be changed directly - copy the parameter to LocalSettings.php and change it there.
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
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?
Also, you should never change DefaultSettings.php. Make the changnge at the bottom of LocalSettings.php.
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?
On Jan 4, 2008 1:50 PM, Boris Epstein borepstein@gmail.com wrote:
There are two parameters that determine how big a file you can upload. They are:
- 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.
- In ./includes/DefaultSettings.php
$wgMaxUploadSize = 1024*1024*100; # 100MB MediaWiki specific upload size limit
mediawiki-l@lists.wikimedia.org