非文件类业务配置功能上传文件时,如配置导入功能,文件大小以springmvc配置文件中参数为限制,异常提示信息修正。
This commit is contained in:
@@ -91,7 +91,11 @@ public class MultipartFileIntercepter extends CommonsMultipartResolver{
|
||||
return multipartParsingResult;
|
||||
|
||||
} catch (FileUploadBase.SizeLimitExceededException ex) {
|
||||
throw new MultiPartNewException("",fileUploadTotalSize,fileUpload.getSizeMax(),languageProp,ex);
|
||||
if(fileUploadTotalSize==0l){
|
||||
throw new MultiPartNewException(languageProp, ex);
|
||||
}else{
|
||||
throw new MultiPartNewException("",fileUploadTotalSize,fileUpload.getSizeMax(),languageProp,ex);
|
||||
}
|
||||
} catch (FileUploadException ex) {
|
||||
throw new MultiPartNewException(languageProp, ex);
|
||||
}catch (IOException ex) {
|
||||
|
||||
Reference in New Issue
Block a user