因为nginx转发的时候,没有设置最大上传文件大小限制 在nginx.conf中添加 client_max_body_size 500m便可;nginx
http { include /etc/nginx/mime.types; default_type application/octet-stream; charset utf-8; log_format main '$remote_addr - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$http_x_forwarded_for"'; access_log /var/log/nginx/access.log main; client_max_body_size 10m; #增长这个参数就能够指定最大上传文件大小为10m了; sendfile on; #tcp_nopush on; keepalive_timeout 65; }