注意tomcat或nginx的文件上传限制,nginx默认文件上传1M,需要在nginx中增加client_max_body_size属性,
http {
include mime.types;
default_type application/octet-stream;
client_max_body_size 20m;
#log_format main '$remote_addr - $remote_user [$time_local] "$request" '
# '$status $body_bytes_sent "$http_referer" '
# '"$http_user_agent" "$http_x_forwarded_for"';
......
}