mirror of
https://gitee.com/kekingcn/file-online-preview.git
synced 2025-10-24 01:39:08 +08:00
修正区分大小写的文件系统中,文件后缀名为大写时,系统提示该文件类型不支持的问题
This commit is contained in:
@@ -93,7 +93,7 @@ public class KkFileUtils {
|
||||
* @return 文件后缀
|
||||
*/
|
||||
public static String suffixFromFileName(String fileName) {
|
||||
return fileName.substring(fileName.lastIndexOf(".") + 1);
|
||||
return fileName.substring(fileName.lastIndexOf(".") + 1).toLowerCase();
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user