You are here Home > Know-how > MediaWiki - CMS > Advanced Features in MediaWiki > Upload Large Files
MediaWiki - CMS
 

8.3 Upload Large Files

15.06.2007
8.2.1 eAccelerator [  up  ] - [ A - Z ] - [ top ] 8.4 Include Files (PHP)

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;

Important   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:
  1. Uploading
  2. radinks.com/upload/config.php - Reference
    How to optimize PHP for uploading large files
    radinks.com/upload/config.php

  3. 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



8.2.1 eAccelerator       A - Z Index       Top       Disclaimer       8.4 Include Files (PHP)


$Id: upload-large-files.html,v 1.113 2007/06/15 11:49:14 webcms Exp $
copyright © 2005-2007 by reto