Tags
PHP
Asked 4 years ago
7 Aug 2020
Views 877
noob

noob posted

412 Request Entity Too Large - File Upload Issue with Nginx server

i am using PHP file uploader to upload the file but when i upload big size file like 30M , after some uploading process it says
Request Entity Too Large
i am using Nginx server -1.14.0 , Ubuntu operating system.
Nilesh

Nilesh
answered Nov 30 '-1 00:00

" Request Entity Too Large " means you sending file to upload which is greater than max upload size set in configuration
mostly client_max_body_size is not defined so it take default value
so you need to change client_max_body_size to max file upload size you want to set .

so you need to add or modify client_max_body_size at nginx.conf
mostly it is at
/etc/nginx/nginx.conf
At nginx.conf file under http{ you can add or edit and increase the value of max body size

 client_max_body_size =30M;
Post Answer