Browse Source

图片上传时增加一个Content-Type

lijie 3 năm trước cách đây
mục cha
commit
ff3ae2619f

+ 1 - 1
dmp-cloud/dmp-file/src/main/java/com/persagy/dmp/file/controller/CompatibleOldFileController.java

@@ -119,7 +119,7 @@ public class CompatibleOldFileController {
      * @author : lijie
      * Update By lijie 2021/11/19 9:58
      */
-    @PostMapping(value = "/common/image_upload",consumes = {"image/jpg"})
+    @PostMapping(value = "/common/image_upload",consumes = {"image/jpg",MediaType.APPLICATION_JSON})
     @ResponseBody
     public String imageUpload(HttpServletRequest request) throws IOException {
         if(StrUtil.isBlank(OldFileAppContext.getContext().getKey())){