I am trying to build an api end point to receive formdata along with Image file. I have a Spring Boot end point shown below:
@PostMapping("/user/personUpload")
public ResponseEntity<BaseResposeModel> personUploadWithImage(@RequestParam("person") PersonModel person, @RequestParam("personImage") MultipartFile file) throws IOException{
.................
}
~~
How do I test this from postman. I always get 404 resource not found error.
[!This is the screenshot of Postman for testing the end point.][1]][1]
[1]: https://i.stack.imgur.com/DjgGH.png