[SOLVED] NGINX - How to change upload_max_filesize from default 1M to 100M

Started by MichaDebuss, January 06, 2024, 09:31:19 AM

Previous topic - Next topic
Hello,

how can I change the upload_max_filesize from default 1MB to 100 MB?

Picture upload is not possible with 1MB to Wordpress or ghost.

Hope, anyone can help me.  :)

Best regards,
Michael

Hi
you mean client_max_body_size ? (upload_max_filesize is from php.ini afaik)
look for Maximum Body Size in server and location settings.
and it's defined as 200MB by default at http level iirc

Hi,

I changed client_max_body_size to 200MB and restarted NGINX.

But the error always appeard.

Request is larger than the maximum file size the server allows

maybe you are changing the settings of the wrong nginx then (may be you need to look at the backend (docker\proxmox) nginx settings)?

Thank you @Fright.

The problem was really the backend settings from proxmox container.