Table of contents
Error message:
413 Request Entity Too Large
Reason for error:
The uploaded file is too large, and Nginx limits the file size and throws an error (the default limit is 1 MB, and the size needs to be modified through the client_max_body_size parameter)
Solution:
Nginx can upload files up to 1MB by default. Open nginx.conf in http{} and find the server{} settings:
client_max_body_size 30m; (Configuring the maximum client request entity)
client_body_buffer_size 128k; (Configuring the request body buffer size)