mirror of
https://github.com/yangzongzhuan/RuoYi-Cloud.git
synced 2025-09-02 02:44:42 +00:00
完善ruoyi-file模块的upload接口在文件过大和文件名过长的情况下的返回值中的msg提示信息
This commit is contained in:
@@ -11,9 +11,9 @@ public class FileException extends BaseException
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public FileException(String code, Object[] args)
|
||||
public FileException(String code, Object[] args, String msg)
|
||||
{
|
||||
super("file", code, args, null);
|
||||
super("file", code, args, msg);
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -11,6 +11,6 @@ public class FileNameLengthLimitExceededException extends FileException
|
||||
|
||||
public FileNameLengthLimitExceededException(int defaultFileNameLength)
|
||||
{
|
||||
super("upload.filename.exceed.length", new Object[] { defaultFileNameLength });
|
||||
super("upload.filename.exceed.length", new Object[] { defaultFileNameLength }, "the filename is too long");
|
||||
}
|
||||
}
|
||||
|
@@ -11,6 +11,6 @@ public class FileSizeLimitExceededException extends FileException
|
||||
|
||||
public FileSizeLimitExceededException(long defaultMaxSize)
|
||||
{
|
||||
super("upload.exceed.maxSize", new Object[] { defaultMaxSize });
|
||||
super("upload.exceed.maxSize", new Object[] { defaultMaxSize }, "the filesize is too large");
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user