修复接收文件大小限制

This commit is contained in:
Yutousama 2022-01-28 21:34:56 +08:00
parent 8d6fe31430
commit 7cb003544b
3 changed files with 7 additions and 3 deletions

View File

@ -79,7 +79,7 @@ public class AppController {
@ResponseBody
@RequestMapping("/qq/file.do")
public String sendFile(@RequestParam("image") MultipartFile file) throws Exception {
String path=AppTools.createFile("tmp",file,AppTools.getToDayNowTimeToString()+".png");
String path=AppTools.createFile("tmp",file,System.currentTimeMillis()+".png");
if(StringUtils.isEmpty(path)){
return "not file";
}

View File

@ -1 +1,3 @@
server.port=8002
server.port=8002
spring.servlet.multipart.max-file-size=10MB
spring.servlet.multipart.max-request-size=100MB

View File

@ -1 +1,3 @@
server.port=8002
server.port=8002
spring.servlet.multipart.max-file-size=10MB
spring.servlet.multipart.max-request-size=100MB