How to send Photos to server with additional fields in Android app?
问题 I try to send multiple photos to server with Retrofit. I have endpoint like this: @Multipart @POST("/v1/props") Call<ModelProp> createProp( @Header("x-auth") String token, @Part List<MultipartBody.Part> photo ); But I don't know how to add to this POST method additional information with: int price; String currency; ArrayList<String> tags; Can someone help me add this fields to POST with retrofit? edit: Array may have 1000+ elements 回答1: In Retrofit 2, You can send it extra data with the image