413 Request Entity Too Large - File Upload Issue

后端 未结 10 1357
爱一瞬间的悲伤
爱一瞬间的悲伤 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:20

    Assuming that you made the necessary changes in your php.ini files:

    You can resolve the issue by adding the following line in your nginx.conf file found in the following path:

    /etc/nginx/nginx.conf
    

    then edit the file using vim text editor as follows:

    vi /etc/nginx/nginx.conf
    

    and add client_max_body_size with a large enough value, for example:

    client_max_body_size 20MB;
    

    After that make sure you save using :xi or :wq

    And then restart your nginx.

    That's it.

    Worked for me, hope this helps.

提交回复
热议问题