When using PHP to run an application, script, plugin, or even upload a file, you may receive an error if one of them exceeds the limits established by your webserver. In this post, you’ll discover how to fix the error by increasing the upload_max_filesize default limit in your .htaccess
For doing that,access the .htaccess file that is located in your public_html folder.
Now add the following lines at the end of this file, changing the limits according to your desired values, and click on Save.
memory_limit = 256M upload_max_size = 64M post_max_size = 64M upload_max_filesize = 64M max_execution_time = 300 max_input_time = 1000
- Make sure that your plan supports the limits you are trying to set.
That’s it! Now you know how to increase your upload_max_filesize value through .htaccess