|
|
@ -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())) { |
|
|
|