新增文件接口
This commit is contained in:
parent
48651c384f
commit
e2083b1c47
@ -76,7 +76,7 @@ public class AppController {
|
|||||||
@ResponseBody
|
@ResponseBody
|
||||||
@RequestMapping("/qq/file.do")
|
@RequestMapping("/qq/file.do")
|
||||||
public String sendFile(@RequestParam("image") MultipartFile file) throws Exception {
|
public String sendFile(@RequestParam("image") MultipartFile file) throws Exception {
|
||||||
String path=AppTools.createFile("tmp",file,"tmp.png");
|
String path=AppTools.createFile("tmp",file,AppTools.getToDayNowTimeToString()+".png");
|
||||||
if(StringUtils.isEmpty(path)){
|
if(StringUtils.isEmpty(path)){
|
||||||
return "not file";
|
return "not file";
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user