有一张图片怎么也上传不上去,我只是用photoshop修改了一下。
php.ini 中post_max_size = 8M也修改了。
通过搜过nginx的错误日志client intended to send too large body: 1161693 bytes,原来是nginx中的client_max_body_size 的限制。
抓包看了一下:
是413错误,和书上说的一样。
解决方法:
在nginx的配置文件http{后面添加限制:
client_max_body_size 2m;
This entry was posted on Friday, February 19th, 2021 at 15:57 and is filed under 我的日志. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
用户名
电子邮箱 (不会被公布)
网站
Δ