You may want to increase the maximum file size limit of the files you upload, particularly when you use WordPress. You may have a host that sets the max file size limit to something ridiculously low, like 2 MB. This is how you can increase your “file size upload max” limit to something larger than 2 megabytes.
To increase the max limit of what you can upload to your server, you have to enter some lines into your “php.ini” file. This file is sometimes sitting on your server, in the web root folder. Find the file.
If the file is not there, many web hosts allow you to create one (name it
To increase the max file size upload limit, decide how many megabytes you need to upload regularly. The example below increases the max filesize limit to 20 megabytes. It also adds a second line to increase the “post_max_size” since the post max size should be larger than the upload max file size.
If you’ve created a brand new “php.ini” file, paste the following lines into your php5.ini file.
upload_max_filesize = 20M post_max_size = 28M
If you are editing an existing “php.ini” file, you should first search the file for “
upload_max_filesize” in case it already exists. If it already exists, then change the number after the equal sign (=) to something like 20M, or more. Then, search for “
post_max_size” to see if it already exists in your “php.ini” file. If it does exist, then change the number to something a few megabytes higher than the “
Save the file. It may take a few minutes to a few hours for this change to take effect. The speed at which your PHP setting changes will take effect depends on your host. To confirm that the change took effect, you can see this article: How To Find Out Your PHP Info. It shows you how to check your PHP settings.