Hey! Had the same issue last week. You're on the right track with `client_max_body_size` in nginx, but did you restart nginx after changing it?
Also, check if there’s a hard limit in your PHP config (`upload_max_filesize` and `post_max_size`). Sometimes the http 413 error pops up because of that.
For a nicer error, you could use client-side checks before uploading—like JS to warn users if the file’s too big.
Also, check if there’s a hard limit in your PHP config (`upload_max_filesize` and `post_max_size`). Sometimes the http 413 error pops up because of that.
For a nicer error, you could use client-side checks before uploading—like JS to warn users if the file’s too big.
