I have an spring boot application that has end point like this
@PostMapping("/")public ResponseEntity<FileUploadResponseDto> upload(@RequestPart("details") FileUploadDto fileUploadDto,@RequestParam("file") MultipartFile file){ try { return ResponseEntity.ok( fileUploadService.uploadFile(fileUploadDto,file)); }catch (Exception e){ return ResponseEntity.status(406).body(new FileUploadResponseDto(false,e.getMessage())); }};When using postman everything works fine.This is postman example
But when i try to use http apache client the spring boot returns application/octet-stream is not supported
What Am I doing wrong here ?
