title: Multipart request with retrofit 2.0 Android Taking too much time to request
body: <p>I try to make a multipart request with retrofit 2.0 to upload an image to my server.</p>
  
  <p>For now I have RequestBody with my image </p>
  
  <pre><code>RequestBody requestFile = RequestBody.create(MediaType.parse("image/*"), file);
  </code></pre>
  
  <p>Then I create from data in this way</p>
  
  <pre><code>imagenPerfil = MultipartBody.Part.createFormData("user[image]",file.getName(),requestFile);
  </code></pre>
  
  <p>My retrofit interface</p>
  
  <pre><code>@Multipart
  @Headers({"Accept: application/json","X-OS:android","X-Api-Version:1","X-FIREBASE-TOKEN:token"})
  @POST("/update_user_details")
  Call&lt;UserDetailAddResponse&gt; uploadMulFile(@Header("X-User-Token") String token_header, @Header("X-User-Email") String email,
                                            @PartMap Map&lt;String,Map&lt;String,Object&gt;&gt; object,
                                            @Part MultipartBody.Part image);
  </code></pre>
  
  <p>request taking too much time to go on server or in the end it stop or don't send request on server..what i have to do
  would i use this in another Thread or is it okay ?</p>