Commit c050595a authored by 廖旭伟's avatar 廖旭伟

上传文件名长度限制修改

parent 382d7bf7
...@@ -57,8 +57,8 @@ public class UploadServiceImpl implements UploadService { ...@@ -57,8 +57,8 @@ public class UploadServiceImpl implements UploadService {
log.error("文件上传大小超过限制,当前文件---" + tempFile.getSize() + ",允许大小----------" + type.getMaxSize()); log.error("文件上传大小超过限制,当前文件---" + tempFile.getSize() + ",允许大小----------" + type.getMaxSize());
throw new AppException("文件上传大小超过限制!"); throw new AppException("文件上传大小超过限制!");
} }
if (null != fileName && fileName.length() > 64) { if (null != fileName && fileName.length() > 128) {
throw new AppException("文件名称过长,无法上传!"); //throw new AppException("文件名称过长,无法上传!");
} }
String rootPath = this.filePath.endsWith("/") ? this.filePath : this.filePath + "/"; String rootPath = this.filePath.endsWith("/") ? this.filePath : this.filePath + "/";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment