Skip to main content

Increase Upload Size

By default, PHP and NGINX configs have the default upload limit of 2MB.

This limit can be increased to a reasonable size like 12MB to accommodate larger image size upload.

Navigate to the PHP directory where the php.ini file is located. On Debian 11 systems with PHP 8.1, the location is in the various php packages at /etc/php/8.1/

Screenshot 2022-10-04 225304.png

Search for the lines post_max_size and upload_max_size, and change them to a higher limit.

Screenshot 2022-10-04 225555.png

Screenshot 2022-10-04 225629.png