Commit 2379e2c7 authored by chenzhao's avatar chenzhao

资料上传 增加限制500M

parent 688e82b7
......@@ -1398,7 +1398,8 @@ public class CommonServiceImpl {
double totalNum = (double) (totalSize/1024/1024);
if (totalNum > 500 ){
this.cleanup(folderPath);
throw new BadRequest("所选文件总大小不得超过500M,当前所选文件总大小为"+totalNum+"M");
response.setHeader("content-error","所选文件总大小不得超过500M,当前所选文件总大小为"+totalNum+"M");
return;
}
// response.setContentLengthLong((int) totalSize);
addFolderToZip(zipFilePath, folderPath, zos,response);
......
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