The method where I get the images
private List<HashMap<String, RequestBody>> getUserDocumentsPhoto(File[] images){
HashMap<String, RequestBody> userDocumentsPhoto = new HashMap<>();
List<HashMap<String, RequestBody>> photos = new ArrayList<>();
for (File image : images) {
RequestBody fileBody = RequestBody.create(MediaType.parse("multipart/form-data"), image);
userDocumentsPhoto.put("filename=\"" + image.getName(), fileBody);
}
photos.add(userDocumentsPhoto);
return photos;
When parse to json I need to get
"document_photos": [
"/system/attachments/files/000/000/110/original/photo20160726_120701-1392731703.jpg?1469524104",
"/system/attachments/files/000/000/111/original/photo20160726_120814-2041790628.jpg?1469524105"]
But when it parsed, "document_photos []" has null