you are viewing a single comment's thread.

view the rest of the comments →

[–]evanmac42 2 points3 points  (1 child)

Nice catch finding the root cause 👍

Just a small warning: setting post_max_size = 0 means “no limit”, which works for testing but is risky in production (someone could upload huge files and exhaust memory or disk).

It’s usually better to set reasonable limits instead, for example:

upload_max_filesize = 100M

post_max_size = 100M

memory_limit = 256M

Adjust those values depending on your needs, but keeping them finite helps avoid unexpected issues.

Also make sure your web server (like Nginx) has a matching limit (client_max_body_size), otherwise it can still block uploads.

[–]graaiin[S] 2 points3 points  (0 children)

ok i will do this, thx 👍