1、struts 2 默认限制文件上传大小为 2M ,如超过则无法上传 ,可通过修改struts.xml配置文件来完成。
<constant name="struts.multipart.maxSize" value="10000000" />
value 单位为字节(byte)