I would be happy and delighted if this could help you as well.
Server API contract : Input Type : Multipart-from data
Data to be send in body against key called "images"
@POST("feeds")
Call<> createFeeds(@Body RequestBody file);
MultipartBody.Builder builder = new MultipartBody.Builder();
builder.setType(MultipartBody.FORM);
builder.addFormDataPart("content", textContent);
for(String filePath : imagePathList){
File file = new File(filePath);
builder.addFormDataPart("images", file.getName(),
RequestBody.create(MediaType.parse("image/*"), file));
}
MultipartBody requestBody = builder.build();
Call<SocialCreateFeedResponse> call = mSocialClient.createFeeds( requestBody);