修正区分大小写的文件系统中,文件后缀名为大写时,系统提示该文件类型不支持的问题
parent
bcdb5ce0e6
commit
1fa7b4a911
|
@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue