mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-04-19 03:01:48 +08:00
This commit is contained in:
parent
c1c862dda7
commit
1bf0b331c9
@ -177,6 +177,12 @@ public class FileTypeUtil {
|
||||
} else if ("ofd".equalsIgnoreCase(extName)) {
|
||||
typeName = "ofd";
|
||||
}
|
||||
} else if ("jar".equals(typeName)) {
|
||||
// wps编辑过的.xlsx文件与.jar的开头相同,通过扩展名判断
|
||||
final String extName = FileUtil.extName(filename);
|
||||
if ("xlsx".equalsIgnoreCase(extName)) {
|
||||
typeName = "xlsx";
|
||||
}
|
||||
}
|
||||
return typeName;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user