struts2上传不同类型文件的问题
我在开发struts2的上传功能时,发现xls格式及jpg格式不能上传,很是郁闷,但jpeg格式可以上传,下面是配置的允许上传的文件类型:
<interceptor-ref name="fileUpload">
<param name="allowedTypes">image/gif,image/jpeg,application/zip,text/xml,application/x-rar-compressed,application/msword,application/ppt,application/msexcel,application/octet-stream,application/pdf,text/plain,text/html,image/pjpeg,application/vnd.ms-excel</param>
<param name="maximumSize">102400000</param>
</interceptor-ref>
不知道哪里配置的有问题,请高手指点