413 Request Entity Too Large in DigitalOcean (Nginx)

Viewed 3611

I am facing this issue (413 Request Entity Too Large) in Ubuntu 18.04. I am using NGINX server ,Digital-ocean Cloud. I have done changes in php.ini ,to upload max file size to 128MB. But i think i need to do some configuration in nginx . Can anyone suggest me what configuration should i do.

2 Answers

I added client_max_body_size 128M; in side http{} block in nginx.conf file, now this issue is solved.

In nginx add inside server { } client_max_body_size 128M;.

In php config change upload_max_filesize = 128M and post_max_size = 129M.

Related