修正区分大小写的文件系统中,文件后缀名为大写时,系统提示该文件类型不支持的问题

This commit is contained in:
youken9980
2021-03-31 13:28:02 +08:00
committed by kl
parent bcdb5ce0e6
commit 1fa7b4a911

View File

@@ -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();
}