Error Whitelabel Error Page This application has no explicit mapping for /error, so you are seeing this as a fallback.

Tue Jan 25 13:54:17 YEKT 2022 There was an unexpected error (type=Bad Request, status=400).

Controller

@GetMapping("/uploadtest")
    public String uploadtest(Model model) {
         return "upload";
    }

    @PostMapping("/postupload")
    public String postupload(@RequestParam("files") MultipartFile[] images,Model model) {
         return "upload";
    }

form ```


``` when i remove @RequestParam("files") MultipartFile[] images the error disappears why error?

Comment From: bclozel

Thanks for getting in touch, but it feels like this is a question that would be better suited to StackOverflow. As mentioned in the guidelines for contributing, we prefer to use GitHub issues only for bugs and enhancements. Feel free to update this issue with a link to the re-posted question (so that other people can find it) or add some more details if you feel this is a genuine bug.

Comment From: nnpa

https://ru.stackoverflow.com/questions/1374916

Comment From: nnpa

        @RequestParam("files") MultipartFile[] files,
              <input type="file" name="files" multiple class="form-control" accept=".jpg, .jpeg" >

решило проблему