Ver código fonte

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

lijie 3 anos atrás
pai
commit
30f001f0f7

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

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