在tomcat的web.xml中没有.rar的mime,
  开始尝试使用System.out.println(this.getfileContentType());
  发现上传.rar和.exe文件输入的结果都是application/octet-stream。  请问一下:是不是只能重写validate方法解决了?