Last modified: 2013-04-22 16:16:34 UTC
See patch. FileBackend.php has a hard-coded limit ($this->maxFileSize) of ~1 GB. If LocalSettings.php $wgMaxUploadSize is set > 1 GB, the file will be blocked by FileBackend.php. The patch adds a condition to defer to $GLOBALS['wgMaxUploadSize'] if it is greater than maxFileSize.
Created attachment 10897 [details] FileBackend.php patch
$wgMaxUploadSize is not necessarily an integer, but could also be an array of integers.
Created attachment 10899 [details] FileBackend.php patch v2 See updated patch. Should cover more bases.
Comment on attachment 10897 [details] FileBackend.php patch I presume this is obsoleted by the "v2" patch. :)
Comment on attachment 10899 [details] FileBackend.php patch v2 Moved to Gerrit change #22038
Thanks for the patch, Timothy O'Keefe. It's been moved into our source control system so people can comment on and review it. You can use https://www.mediawiki.org/wiki/Git/Tutorial to understand more and get a free account.
Timothy, you have a comment on your code here: https://gerrit.wikimedia.org/r/#/c/22038/1/includes/filebackend/FileBackendStore.php so it would be great if you could respond & resubmit. Thanks!
Created attachment 11046 [details] FileBackend.php patch v3 Addressing comment: https://gerrit.wikimedia.org/r/#/c/22038/1/includes/filebackend/FileBackendStore.php
Please put your amendment in Gerrit instead of here.
Hello? Can you request developer access and submit this to Gerrit please?
On the 23rd of September, Aaron Schulz posted this comment on the Gerrit change: >The limit is 4GiB now, and if it were to be configured, we'd want to use a paramer given to the FileBackend constructor.