79632896

Date: 2025-05-22 00:20:47
Score: 0.5
Natty:
Report link

You should check Backend controller how it gets form-data. When client sends image using form-data, backend can receive image by using @RequestPart Annotation.

I tested this using PostMan and it succeeded.

Here's an example.

@PostMapping("/api/images")
public void uploadImage(@RequestPart MultipartFile file) {
   ...
}

I hope it works.

Reasons:
  • Whitelisted phrase (-1): hope it works
  • Has code block (-0.5):
  • User mentioned (1): @RequestPart
  • Low reputation (1):
Posted by: Joon Hee Song