First, tune limitations of PHP itself
/etc/php.ini
; Maximum allowed size for uploaded files. X Orig: 2M
upload_max_filesize = 33M
Especially check the section «Resource Limits». The following keys should also
be checked for optimal values: max_execution_time, max_input_time, memory_limit.
Continue to tune MediaWiki...
It might help to check includes/DefaultSettings.php (~1053)
...
/** Warn if uploaded files are larger than this */
$wgUploadSizeWarning = 150 * 1024;
 | |
Memory problems with very large files, e.g. larger than 8 MB
|
Edit includes/SpecialUpload.php (~813)
You can out-comment the call to Sanitizer to prevent an out-of-memory situation:
#resolve entity-refs to look at attributes. may be harsh on big files... cache result?
# X retos: $chunk = Sanitizer::decodeCharReferences( $chunk );
See also:
- Uploading
-
radinks.com/upload/config.php - Reference
How to optimize PHP for uploading large files
radinks.com/upload/config.php
-
zend.com/manual/features.file-upload.errors.php - Reference
Debugging: Can't upload large files in PHP
zend.com/manual/features.file-upload.errors.php