mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-07-25 16:35:06 +08:00
文件上传
This commit is contained in:
@ -56,7 +56,8 @@ public class FileController {
|
||||
})
|
||||
public CommonResult<String> uploadFile(@RequestParam("file") MultipartFile file) throws Exception {
|
||||
String path = DateUtil.format(new Date(), "yyyy/MM/dd/") + file.getOriginalFilename();
|
||||
return success(fileService.createFile(path, IoUtil.readBytes(file.getInputStream())));
|
||||
String file1 = fileService.createFile(path, IoUtil.readBytes(file.getInputStream()));
|
||||
return success(file1);
|
||||
}
|
||||
|
||||
@DeleteMapping("/delete")
|
||||
|
Reference in New Issue
Block a user