1. 问题

  上传文件过大报错,413 Request Entity Too Large。

 

2. 解决方法

  修改配置文件,在以下两处:

  a. php.ini文件(php目录)

  在File Uploads下面,设置upload_max_filesize,比如:

upload_max_filesize=100M

    b. nginx.conf文件(nginx目录)

  http{ ...... }里加上这句:client_max_body_size 100m;

  

相关文章:

  • 2022-12-23
  • 2021-10-16
  • 2021-07-16
  • 2022-12-23
  • 2021-11-14
  • 2021-11-14
猜你喜欢
  • 2022-01-16
  • 2021-06-09
  • 2021-11-14
  • 2021-06-08
  • 2022-01-01
  • 2021-11-20
相关资源
相似解决方案