How to post this body type form-data using retrofit. I tried with @Part but image is not getting save on server. Any idea where I'm making a mistake?
@Multipart
@POST("/saveData")
Call<MyResponse> saveImage(
@Part("empsno") String empsno,
@Part("lrSno") String lrsno,
@Part("deliveryDate") String deliverydate,
@Part("deliveryTime") String delvrytime,
@Part("uploadFile") String upldfile,
@Part("remarks") String remark,
@Part("receivedBy") String recvdby,
@Part("place") String place,
@Part("ipAddress") String ip,
@Part MultipartBody.Part images
);
By using form data I'm successfully able to post data: