Browse Source

图片上传修改

dev_shibei_match
zhaoqifeng 5 years ago
parent
commit
e141ca0221
  1. 2
      epmet-module/epmet-oss/epmet-oss-server/src/main/java/com/epmet/controller/OssController.java

2
epmet-module/epmet-oss/epmet-oss-server/src/main/java/com/epmet/controller/OssController.java

@ -188,7 +188,7 @@ public class OssController {
}
@PostMapping("article/upload")
public Result uploadArticleImg(@RequestParam("file") MultipartFile file) {
public Result<UploadImgResultDTO> uploadArticleImg(@RequestParam("file") MultipartFile file) {
// 校验文件类型
if (!MediaType.IMAGE_PNG_VALUE.equals(file.getContentType()) && !IMAGE_JPG_VALUE.equals(file.getContentType())) {

Loading…
Cancel
Save