在tomcat的web.xml中没有.rar的mime,
开始尝试使用System.out.println(this.getfileContentType());
发现上传.rar和.exe文件输入的结果都是application/octet-stream。 请问一下:是不是只能重写validate方法解决了?
开始尝试使用System.out.println(this.getfileContentType());
发现上传.rar和.exe文件输入的结果都是application/octet-stream。 请问一下:是不是只能重写validate方法解决了?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货