413 Request Entity Too Large - File Upload Issue

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

    Use:

    php -i
    

    command or add:

    phpinfo();
    

    to get the location of configuration file.

    Update these variables according to your need and server

    max_input_time = 24000
    max_execution_time = 24000
    upload_max_filesize = 12000M
    post_max_size = 24000M
    memory_limit = 12000M
    

    On Linux you will need to restart nginx / apache and phpfpm service so the new ini settings are loaded. On xampp, ammps you can restart these from control panel that comes with such applications.

提交回复
热议问题