文件上传 allowedTypes设置

<interceptor-stack name="fileUploadStack">
    <interceptor-ref name="fileUpload">
     <param name="maximumSize">4096000</param>
     <param name="allowedTypes">
      image/bmp,image/jpg,image/x-png,image/gif,image/jpeg,text/plain,application/msword,application/excel,application/vnd.ms-excel,application/vnd.ms-powerpoint,application/zip,application/x-zip-compressed,application/rar,application/octet-stream,application/xml,text/xml
     </param>
    </interceptor-ref>
    <interceptor-ref name="basicStack" />
   </interceptor-stack>

不限制的话就不要allowedTypes这个参数设置

你可能感兴趣的:(xml,Excel)