Increase Max Upload Size V5

I have been trying to upload files to a project, however I keep hitting the 2M file size limit. I have tried editing the php.ini file for php7.4-fpm and the .htaccess file however Invoice Ninja does not seem to adhere to these changes.

Is anyone aware of how to increase the max upload size from 2M?

For anyone else wondering turns out Nginx isn’t looking at PHP for the max upload size, this would explain why changing the max upload values in the PHP.ini file did nothing.

Instead you need to edit the nginx.conf file located at /etc/nginx/nginx.conf

In the nginx.conf file you need to add the following line under the HTTP { section:

client_max_body_size 100M;

Then restart nginx (systemctl restart nginx) and you should be good to go.

Hi,

Thanks for sharing the solution!