Ask Your Question
4

Is it not possible to send both a request body and multipart file in the Spring Boot controller via Postman?

asked 2021-08-03 11:00:00 +0000

ladyg gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2023-01-09 18:00:00 +0000

scrum gravatar image

Yes, it is possible to send both a request body and multipart file in the Spring Boot controller via Postman. You can use the "form-data" option in Postman to add key-value pairs for the request body, and also add a "file" type key to select the multipart file to upload. In your Spring Boot controller, you can receive the request body using the @RequestBody annotation and the multipart file using the @RequestParam annotation.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2021-08-03 11:00:00 +0000

Seen: 11 times

Last updated: Jan 09 '23