How to Increase the WordPress Upload Size Limit

Discussions related with hosting control panels used, which include cPanel, Plesk, Directadmin etc..

Moderator: Staff

Post Reply
stark
Posts: 0
Joined: Fri Sep 16, 2016 10:00 am

How to Increase the WordPress Upload Size Limit

Post by stark »

I have increased upload size limit in php.ini , but does not take effect in wordpress .still showing error.


--------------------------------------------------------------------------------------------
You are using the multi-file uploader. Problems?Try the browser uploader instead.

Maximum upload file size : 8 MB
--------------------------------------------------------------------------------------------

I want to increase upload size to 64 Mb

here is my details in php.ini

upload_max_filesize = 64M
post_max_size = 32M
memory_limit = 15M


John Stanley
Posts: 0
Joined: Wed Sep 28, 2016 10:50 am

Re: How to Increase the WordPress Upload Size Limit

Post by John Stanley »

Hi stark,

Please make sure if there any values already set on wp-config.php file. There is an alternative option to set PHP limit for WordPress accounts.

You can add PHP limits for your WordPress account by adding the following code to the wp-config.php file:

@ini_set( 'upload_max_size' , '64M' );
@ini_set( 'post_max_size', '32M');
@ini_set( 'memory_limit', '15M' );

Also take a look at your root directory and see if there is an .htaccess file there. If there is you can edit that file to add the necessary code for increasing the upload limit.

php_value upload_max_filesize 12M
php_value post_max_size 13M
php_value memory_limit 15M


Regards
John


If you are looking for assistance in server management, please get in touch with our support.
Post Reply