Commit d7f4b6f1 authored by 高滢's avatar 高滢

文件大小限制

parent 39e1a7e9
...@@ -109,7 +109,7 @@ public class CommonController ...@@ -109,7 +109,7 @@ public class CommonController
// 检查文件大小 // 检查文件大小
if (fileSize > maxSize) { if (fileSize > maxSize) {
// 如果文件大小超过限制,返回错误信息 // 如果文件大小超过限制,返回错误信息
throw new ServiceException("文件大小超过限制,最大允许大小为2MB"); throw new ServiceException("文件大小超过限制,最大允许大小为4MB");
}else { }else {
try { try {
......
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