Nginx使用记录

前端上传文件失败,请求接口后无返回值证明还没到接口,使用postman直接发送post请求后发现提示nginx报错413 Request Entity Too Large 百度后发现nginx有默认上传限制为1M,需在nginx.conf中增加 client_max_body_size 字段。如下在http块中设置上传最大为20M
相关文章
相关标签/搜索