多文件上传
作者:互联网
多文件上传
后台接参
@PostMapping("/uploadFile")
@ApiOperation("上传附件")
public Object uploadFile(HttpServletRequest req,
MultipartFile[] file,
@RequestParam("bsId") String bsId) {
try {
re = benbuService.uploadFile(req, file, bsId);
} catch (Exception e) {
re = new ReturnObject<Object>(CustomHttpStatus.RECODE_E, CustomHttpStatus.UPLOAD_F);
}
return re;
}
前端传参格式
标签:文件,bsId,uploadFile,CustomHttpStatus,re,file,上传 来源: https://www.cnblogs.com/hhs-5120/p/16656845.html