struts2默认只能上传2M的文件 下面这个配置放在struts.xml <constant name="struts.multipart.maxSize" value="52428800"></constant>