|
@@ -267,7 +267,7 @@ public class AdvertiserService implements IAdvertiserService, ISelectorProvider{
|
|
|
// 获取文件后缀
|
|
|
String filetype = myFileName.substring(myFileName.lastIndexOf(".") + 1);
|
|
|
// 如果所属后缀为不可上传后缀,则返回
|
|
|
- if (!noStuffixSet.contains(filetype)) {
|
|
|
+ if (!noStuffixSet.contains(filetype.trim().toLowerCase())) {
|
|
|
result.setStatus(SimpleController.ERROR);
|
|
|
result.setMsg("文件类型不支持!");
|
|
|
return result;
|