Retrofit 2 : send files with json object
问题 I'm sending object in request body, something like that : { "title":"test", "description":"test", "images":[] } @POST("create-data") Call<JsonObject> publishData(@Body MyObject object); and it's work fine without the images. From the docs I can find how to upload file to server using MultipartBody.Part , my questions is : How can I upload multiple images at the same time? Is it possible to send the images inside the object, or I need to send it separately and how ? thank you very much. 回答1: