Page MenuHomePhabricator

Wrong error message, This file is bigger than the server is configured to allow
Closed, InvalidPublic

Description

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


Version: 1.17.x
Severity: normal
OS: Windows Vista

Details

Reference
bz26359

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:24 PM
bzimport set Reference to bz26359.

Bryan.TongMinh wrote:

This presumably was introduced when I rewrote the size checking routines.

Unknown Object (User) added a comment.Jan 23 2011, 3:11 AM

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.

Bryan.TongMinh wrote:

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