How to increase the file upload size for PHP using the .htaccess file

H

How Can We Help?

How to increase the file upload size for PHP using the .htaccess file

Copy the following lines into your .htaccess file, you may adjust the values as you see fit 

	php_value upload_max_filesize 10M
 
	php_value post_max_size 20M
 
	php_value memory_limit 128M

About the author

Ian Carnaghan

I am a software developer and online educator who likes to keep up with all the latest in technology. I also manage cloud infrastructure, continuous monitoring, DevOps processes, security, and continuous integration and deployment.

About Author

Ian Carnaghan

I am a software developer and online educator who likes to keep up with all the latest in technology. I also manage cloud infrastructure, continuous monitoring, DevOps processes, security, and continuous integration and deployment.

Follow Me