文件超出规定大小提示优化

pull/737/head
Zheng Jie 2022-03-18 14:10:12 +08:00
parent b9aca9366d
commit 7e85fb2e25
1 changed files with 1 additions and 1 deletions

View File

@ -253,7 +253,7 @@ public class FileUtil extends cn.hutool.core.io.FileUtil {
// 1M
int len = 1024 * 1024;
if (size > (maxSize * len)) {
throw new BadRequestException("文件超出规定大小");
throw new BadRequestException("文件超出规定大小" + maxSize + "M");
}
}