DEV Community

Amit Verma (amitoverflow)
Amit Verma (amitoverflow)

Posted on

Increase php upload_max_filesize with htaccess

In PHP the default upload_max_filesize is 2 MB but you can increase this filesize limit using your htaccess file. To increase the limit via htaccess , add the following line to your htaccess


php_value upload_max_filesize 100MB

Enter fullscreen mode Exit fullscreen mode

This will increase the default limit to 100MB.
Read more on this article here https://helponnet.com/2021/11/09/php-post-max-filezize-htaccess/

Top comments (0)