title: cant get request body sent from retrofit in php
body: <p>I'm trying to send multiple image to server using retrofit 
  what i'am doing is to send a map of RequestBody and this is my code </p>
  
  <pre><code>  @Multipart
  @POST("imageuload")
  Call&lt;ResponseBody&gt; postImage(@PartMap Map&lt;String, RequestBody&gt; files );
  </code></pre>
  
  <p>and in my activity </p>
  
  <pre><code>   Map&lt;String, RequestBody&gt; filestosend = new HashMap&lt;&gt;();
                  for (int pos = 0; pos &lt; files.size(); pos++) {
                      RequestBody requestBody = RequestBody.create(MediaType.parse("image/*"), files.get(pos));
                      filestosend.put("photo_" + String.valueOf(pos + 1), requestBody);
                  }
  
  
  
  
                  Call&lt;ResponseBody&gt; call = apiSerice.postImage(filestosend);
                  call.enqueue(new Callback&lt;ResponseBody&gt;() {
                      @Override
                      public void onResponse(Call&lt;ResponseBody&gt; call, Response&lt;ResponseBody&gt; response) {
                          if (response.isSuccessful()) {
                              try {
                                  Toast.makeText(getBaseContext(),response.body().string(),Toast.LENGTH_LONG).show();
                              } catch (IOException e) {
                                  e.printStackTrace();
                              }
                          }else {
                              try {
                                  AlertDialog.Builder alert = new AlertDialog.Builder(MainActivity.this);
  
                                  alert.setMessage(response.errorBody().string());
                                  alert.show();
                              } catch (IOException e) {
                                  e.printStackTrace();
                              }
                          }
                      }
  
                      @Override
                      public void onFailure(Call&lt;ResponseBody&gt; call, Throwable t) {
                          t.printStackTrace();
  
  
                      }
                  });
  </code></pre>
  
  <p>and when i want to test for what i'am getting it return an empty respons from server and i get nothing in my response .. </p>
  
  <pre><code>echo file_get_contents('php://input');
  </code></pre>
  
  <p>i even tested with a single request body </p>
  
  <pre><code>  RequestBody test = RequestBody.create(MediaType.parse("text/plain"), "test");
  
                  Call&lt;ResponseBody&gt; call = apiSerice.postImage(test);
  </code></pre>
  
  <p>but i am still getting an empty response in my on response 
  i will appreciate any help or comment </p>