Changing Upload Max. Filesize

 How to change your wordpress website Upload Maximum Filesize to one that suits your needs.

Some shared hosts in which case you would have to ask your hosting service provider for support.

In Your Theme Functions File
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:
@ini_set( 'upload_max_size' , '64M' );

Create or Edit an existing PHP.INI file
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

Edit or Create a .htaccess Method
Some people have tried using the htaccess method where 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

Increasing Upload Max. Filesize

Desktop Website Design
You can choose Document Root for quicker access. You’ll go directly to your site’s files after selecting it from the drop-down list.

If you use cPanel, go to the Files section and click on the File Manager button. Make sure the checkbox for Show Hidden Files is checked and then click Go.

Select your wp-admin folder and find a file called php.ini or php5.ini. If you don’t see it, create one by clicking the New File button in the top left-hand corner. Name the file php.ini and click the Create File button on the pop-up.

New File button in the top left-hand corner. Name the file php.ini and click the Create File button on the pop-up.

If you follow these instructions and it still doesn’t work, try renaming the file to php5.ini. Once the file is open, add or edit the following lines and then save and close.


upload_max_filesize = 1000M
post_max_size = 2000M
memory_limit = 3000M
file_uploads = On
max_execution_time = 300


Change the 1000M, 2000M and 3000M limit to the value with which you feel comfortable. Changing the value of max_execution_time will limit the amount of time spent loading a script in seconds try 300.

In many cases, the values you enter should get larger as you go down the list from lines one to three. The upload_max_filesize should be the smallest while memory_limit should be the largest.