79465829

Date: 2025-02-25 08:19:10
Score: 1.5
Natty:
Report link

use It in Spring Boot @RequestPart, Below is the example

@PostMapping public ResultModel sendNotification(@RequestPart("baseNotificationModel") EmailNotificationModel baseNotificationModel, @RequestPart(value = "file", required = false) MultipartFile[] file)

In postman do below changes to call API

Hello everyone, In postman choose Content-Type for both the Model(DTO) and file. If the column Content-Type isn't display then click on the Bulk edit and add column Content-Type.

Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @RequestPart
  • Low reputation (1):
Posted by: Sky