问题背景 nginx代理的静态页面,上传图片文件至使用express编写的后台,上传4k图片时报错。上传文件实体过大。 解决 在nginx.conf中代理协议中配置client_max_body_size字段,大小设置大一点即可。