请问struts2 过滤器不限制文件 上传类型、大小和扩展名 怎么设置?
<interceptor-refname="defaultStack"><paramname="fileUpload.allowedExtensions">gif,jpg...
<interceptor-ref name="defaultStack">
<param name="fileUpload.allowedExtensions">gif,jpg,png,txt,doc,docx</param>
<param name="fileUpload.maximumSize">1024000</param>
<param name="fileUpload.allowedTypes">image/png,image/gif,image/jpeg</param>
</interceptor-ref> 展开
<param name="fileUpload.allowedExtensions">gif,jpg,png,txt,doc,docx</param>
<param name="fileUpload.maximumSize">1024000</param>
<param name="fileUpload.allowedTypes">image/png,image/gif,image/jpeg</param>
</interceptor-ref> 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询