Last modified: 2011-01-27 20:23:33 UTC
On a MediaWiki 1.17alpha (r78549), PHP 5.2.13 (apache2handler), MySQL 5.1.44-community a file with 62 MB could not be uploaded while the parameters in LocalSettings have been set to $wgMaxUploadSize = '150M'; and php.ini post_max_size = 150M, upload_max_filesize = 150M. The Special:Upload message is ''This file is bigger than the server is configured to allow.'' The same file have been uploaded on a MediaWiki 1.16.0, PHP 5.2.13 (apache2handler), MySQL 5.1.44-community with the same LocalSettings and php.ini settings. Cheers
This presumably was introduced when I rewrote the size checking routines.
Just checked against 1.17alpha (r80795) with the above described setup and the error still occurs.
r80992 adds a dumb test for $wgMaxUploadSize . Could probably be a base of a future test for this bug.
As per the manual [1] $wgMaxUploadSize is the number of bytes, shorthands like '150M' are not recognized. You need to set it to 150 * 1024 * 1024. The reason it worked in 1.16 was that $wgMaxUploadSize only applied to copy uploads. [1] http://www.mediawiki.org/wiki/Manual:$wgMaxUploadSize