修复接收文件大小限制
This commit is contained in:
parent
8d6fe31430
commit
7cb003544b
@ -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";
|
||||
}
|
||||
|
@ -1 +1,3 @@
|
||||
server.port=8002
|
||||
server.port=8002
|
||||
spring.servlet.multipart.max-file-size=10MB
|
||||
spring.servlet.multipart.max-request-size=100MB
|
@ -1 +1,3 @@
|
||||
server.port=8002
|
||||
server.port=8002
|
||||
spring.servlet.multipart.max-file-size=10MB
|
||||
spring.servlet.multipart.max-request-size=100MB
|
Loading…
Reference in New Issue
Block a user