Commit 67cbe3f0 authored by 廖旭伟's avatar 廖旭伟

上传文件名长度限制修改

parent c050595a
...@@ -58,7 +58,7 @@ public class UploadServiceImpl implements UploadService { ...@@ -58,7 +58,7 @@ public class UploadServiceImpl implements UploadService {
throw new AppException("文件上传大小超过限制!"); throw new AppException("文件上传大小超过限制!");
} }
if (null != fileName && fileName.length() > 128) { 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