|
@@ -35,9 +35,9 @@ public class UploadServiceImpl implements UploadService {
|
|
if (file.isEmpty()) {
|
|
if (file.isEmpty()) {
|
|
return new FileDTO("FAILURE", "文件不能为空");
|
|
return new FileDTO("FAILURE", "文件不能为空");
|
|
}
|
|
}
|
|
- //文件大小上限1M
|
|
|
|
- if (file.getSize() > 1024 * 1024) {
|
|
|
|
- return new FileDTO("FAILURE", "文件上传失败,超出大小限制1MB");
|
|
|
|
|
|
+ //文件大小上限500M
|
|
|
|
+ if (file.getSize() > 1024 * 1024 * 500) {
|
|
|
|
+ return new FileDTO("FAILURE", "文件上传失败,超出大小限制500MB");
|
|
}
|
|
}
|
|
|
|
|
|
String result = "";
|
|
String result = "";
|