mirror of
https://gitee.com/kekingcn/file-online-preview.git
synced 2026-09-15 17:34:55 +00:00
5.0版本 发布 新增 cadviewer转换方法
This commit is contained in:
@@ -60,6 +60,18 @@ public class KkFileUtils {
|
||||
}
|
||||
return false;
|
||||
}
|
||||
public static boolean validateFileNameLength(String fileName) {
|
||||
if (fileName == null) {
|
||||
return false;
|
||||
}
|
||||
// 文件名长度限制:255个字符(不包含路径)
|
||||
int windowsMaxLength = 255;
|
||||
if (fileName.length() > windowsMaxLength) {
|
||||
System.err.println("文件名长度超过限制(255个字符)");
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* 检查是否是数字
|
||||
|
||||
Reference in New Issue
Block a user