Closed continue47 closed 4 months ago
Thanks for reporting it. We will consider it for future releases.
No problem, it's not so much an issue since it's easily mitigated by editing nginx.conf, but I thought of reporting it so others can find it on google if they're encountering it.
I just encountered this and looks like the issue with MB vs GB. It works until you increase it to the max limit of MB, however, when it changes to 1GB or higher, that is when it stops working. Probably the units are being ignored and only the values are being considered.
CloudPanel version(s) affected
2.4.1
Description
Going to a site settings -> PHP settings and increasing upload_max_filesize and post_max_size does not actually allow uploading files over the default 64MB. Attempting such an upload returns nginx 413 Request Entity Too Large.
The file
/etc/nginx/nginx.conf
also needs to be manually edited from the terminal to changeclient_max_body_size
to the desired size.How to reproduce
For me, the error occured when trying to upload a 100MB file to a new wordpress site created through cloudpanel. Even though upload_max_filesize, post_max_size and the memory_limit were increased through the cp ui in the site's settings.
Possible Solution
Simplest would be to add a notice message to PHP Settings section of the site settings which tells the user that
client_max_body_size
needs to be updated manually in/etc/nginx/nginx.conf
Additional Context
No response