|
|
@@ -35,10 +35,6 @@ public class UploadService {
|
|
|
if(file.isEmpty()){
|
|
|
throw new BusinessException(ResultCode.UPLOAD_FILE_NO_EXIST);
|
|
|
}
|
|
|
- if(file.getSize()>10 * 1024 * 1024 * 100){
|
|
|
- System.out.println(file.getSize());
|
|
|
- throw new BusinessException(ResultCode.UPLOAD_FILE_TO_LONG);
|
|
|
- }
|
|
|
//获取文件名
|
|
|
String fileName = file.getOriginalFilename();
|
|
|
if(StringUtils.isEmpty(fileName)){
|
|
|
@@ -70,9 +66,6 @@ public class UploadService {
|
|
|
if(file.isEmpty()){
|
|
|
throw new BusinessException(ResultCode.UPLOAD_FILE_NO_EXIST);
|
|
|
}
|
|
|
- if(file.getSize()>10 * 1024 * 1024 * 100){
|
|
|
- throw new BusinessException(ResultCode.UPLOAD_FILE_TO_LONG);
|
|
|
- }
|
|
|
//获取文件名
|
|
|
String fileName = file.getOriginalFilename();
|
|
|
if(StringUtils.isEmpty(fileName)){
|