WordPress is growing blogging platform, every day many peoples join WordPress or create a self-hosted WordPress blog. In this tutorial I am going to cover that How can We Increase Maximum File Upload Size In WordPress, You just have to follow the simple steps to Increase Maximum File Upload Size for your blog. I will discuss different ways but you just have to apply only one, not all.
There are cases where we have seen that just by adding the following code in the theme function’s file, you can increase the upload size:
view source print?
@ini_set( 'upload_max_size' , '64M' ); @ini_set( 'post_max_size', '64M'); @ini_set( 'max_execution_time', '300' );
In most cases, if you are on a shared host, you will not see a php.ini file in your directory. If you do not see one, then create a file called php.ini and upload it in the root folder. In that file add the following code:
upload_max_filesize = 64M post_max_size = 64M max_execution_time = 300
This method is reported to work for many users. Remember if 64 doesn’t work. Try 10MB (sometimes that work).
Some people have tried using the .htaccess method by modifying the .htaccess file in the root directory, you can increase the maximum upload size in WordPress. Open or create the .htaccess file in the root folder and add the following code:
php_value upload_max_filesize 64M php_value post_max_size 64M php_value max_execution_time 300 php_value max_input_time 300
Again, it is important that we emphasize that if you are on a shared hosting package, then these techniques may not work. In that case, you would have to contact your web hosting provider to increase the limit for you. Some hosts completely turn down their users. We recommend that you use HostGator. Their support folks are very helpful in these situations.