413 Request Entity Too Large - File Upload Issue

后端 未结 10 1356
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-04 10:28

I am trying to upload 30MB file on my server and its not working.

  1. When I upload 30MB file, the page loads \"Page Not Found\"

  2. <
10条回答
  •  孤城傲影
    2020-12-04 11:26

    Source: http://www.cyberciti.biz/faq/linux-unix-bsd-nginx-413-request-entity-too-large/

    Edit the conf file of nginx:

    nano /etc/nginx/nginx.conf
    

    Add a line in the http section:

    http {
        client_max_body_size 100M;
    }
    

    Doen't use MB it will not work, only the M!

    Also do not forget to restart nginx

    systemctl restart nginx
    

提交回复
热议问题