Uploading large files
I can't upload big size pictures and graphics even though my web server has unlimited upload
There are three different settings to be considered when you get upload errors:
- Upload limited by server settings. As a general rule, almost all the hosting companies set a per-file size upload limit on their configurations, so there is no way for you to upload larger files unless you request them a raise of that limit.
- A b2evolution hardcoded limit set in the file
blogs/conf/_advanced.php. The default value for this parameter is 30.000Kb and you may modify it by changing the value of the variable
$upload_maxmaxkbin the mentioned file.
- A b2evolution variable limit set in the configuration form of the files manager. To change this value, go to Files > Settings and look for the fieldset File creation options. The Maximum upload filesize parameter is what you need modify to change the limit.
Please note that there is a particular relationship between these parameters, it must be a >= b >= c. Any variation of that rule will cause unexpected results.
IMPORTANT: There is a fourth parameter to keep in mind (lets name it d), the memory limit set in the server for your PHP instance. This value must be higher than the three above, otherwise you will get an upload error. Some hosting providers let users apply modifications on parameters a and d, but it will depend on their own policies, so you should contact them if you have any particular request about this. You may know how these parameters are curently set on your server by going to the PHP section in the Status (see upload_max_filesize, post_max_size and memory_limit).
Created by • Last edit by on Jul 26, 2014