2
votes

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

2 Answers

3
votes

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

0
votes

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

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