DEV Community

Amit Verma (amitoverflow)
Amit Verma (amitoverflow)

Posted on

2 1

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)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs