You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by GitBox <gi...@apache.org> on 2021/01/04 12:02:12 UTC

[GitHub] [servicecomb-service-center] zhangaijing opened a new issue #805: Servicecomb支持多文件上传不?

zhangaijing opened a new issue #805:
URL: https://github.com/apache/servicecomb-service-center/issues/805


   Servicecomb支持多文件上传不? 
       @PostMapping(value="batchUploadFile", consumes = MediaType.MULTIPART_FORM_DATA)
       @ApiOperation(value="批量上传文件")
       public List<FileBO> batchUploadFile(@RequestPart("file") MultipartFile[] multipartFileList) throws Exception{
           return service.batchUploadFile(multipartFileList);
       }
   
   报错:
   Caused by: com.alibaba.fastjson.JSONException: write javaBean error, fastjson version 1.2.58, class org.apache.servicecomb.swagger.invocation.converter.PartToMultipartFile, fieldName : 0, write javaBean error, fastjson version 1.2.58, class org.springframework.web.multipart.MultipartFileResource, fieldName : resource


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [servicecomb-service-center] tianxiaoliang commented on issue #805: Servicecomb支持多文件上传不?

Posted by GitBox <gi...@apache.org>.
tianxiaoliang commented on issue #805:
URL: https://github.com/apache/servicecomb-service-center/issues/805#issuecomment-754428926


   这个文件是什么内容?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org