5

When I'm trying to upload a file on my server I get this error:

413 Request Entity Too Large

Which ofcourse means my file is too large. So i've done a quick google search and came accross this:

open:

/etc/nginx/nginx.conf

Edit:

# set client body size to 2M #
client_max_body_size 2M;

However I don't have that code in my nginx.conf file? Did this recently change? Can't find nothing about it

Thanks

user6527
  • 109
  • 1
  • 6

1 Answers1

9

client_max_body_size default value is 1 MB. RTM

Funk Forty Niner
  • 74,450
  • 15
  • 68
  • 141
Alexander Azarov
  • 12,971
  • 2
  • 50
  • 54