flutter的dio上传多个文件到spring boot的后端

注意dio上传多个文件时,字段名是写死的files[],一定要设为
这个才行

  1. @PostMapping(value = "/upload")
  2. public RestResponse upload(@RequestParam("book") String book,
  3. @RequestParam("author") String author,
  4. @RequestParam("userid") String userid,
  5. @RequestParam("loginid") String loginid,
  6. @RequestParam("files[]") MultipartFile[] files ) {