Last modified: 2014-02-12 23:32:45 UTC
I use the following configuration: $wgMainCacheType = CACHE_MEMCACHED; $wgMemCachedServers = array( "127.0.0.1:11211" ); $wgMaxUploadSize = 1024 * 1024 * 2; $wgUploadSizeWarning = 1024 * 320; If a file with a size below the value $wgUploadSizeWarning gets uploaded, everything is ok. The information displayed below the uploaded file is something like e.g. "(180 × 180 pixels, file size: 207 KB, MIME type: image/jpeg)" as expected. If a file with a size above the value $wgUploadSizeWarning gets uploaded, the story is different. First of all the warning message is: "It is recommended that files are no larger than 327680; this file is $2." The wiki does not pick up the actual value of the file. After the upload was done the following consequently gets displayed below the file: "(500 × 500 pixels, file size: 0 KB, MIME type: image/jpeg)" To get the expected display you need to do an "&action=purge". After that I get the "(500 × 500 pixels, file size: 524 KB, MIME type: image/jpeg)" I am using MW 1.20.6 with PHP 5.3.3 and MySQL 5.1.66
Well, nobody responded to this one. However, it turns out to be fixed after the upgrade from MW 1.20.8 to MW 1.21.3, so presumably this was fixed for the MW 1.21 branch and above. Thus closing as RESOLVED FIXED. Thanks to the unknown programmer who did the fix!