I want to send String[] with file path in Multipart-Entity I got that link (My code is too big to post so i post reference link) in which @rohit mandiwal code works for for single image without string[], but now i have send multiple images with string[]
My Server side code for that service is something like that
@RequestMapping(value = "/Images", method = RequestMethod.POST)
@ResponseBody
@ResponseStatus(value = HttpStatus.OK)
public ImageFilePath uploadFileImage(
@RequestParam("file") MultipartFile[] multipartFiles,@RequestParam("side") String[] sides)
throws Exception {
return AppointmentService.uploadFileImage(multipartFiles, sides);
}
But i am unable to send String[] side to that service by changing above code. Requirement for my service is something like
"Token:ulhas...@gmail.com:people:1460612590421:3f8eeae2f6d2a53c18117bca8952d018" -H "Content-Type:multipart/form-data" "myURL/appointment/myImages" -X POST -F file=@/home/ulhas/Desktop/desktopPdata/img_195753.jpg -F side=left -F file=@/home/ulhas/Desktop/desktopPdata/img_195753.jpg -F side=left