title: Multiple image uploading using multipart retrofit or volley
body: <p>Hi Can any one Please help me out in uploading multiple images selected from gallery,
  parameter is 'images' as array list 
  I have tried with this but no response can any one help me out..</p>
  
  <p>This is my request body : </p>
  
  <pre><code>  MediaType mediaType = MediaType.parse("multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW");
      MultipartBody.Builder mRequestBody = new MultipartBody.Builder()
              .setType(MultipartBody.FORM);
      if (Imagepaths.size() &gt; 0) {
          for(String path:Imagepaths) {
              File file = new File(path);
              mediaType = path.endsWith("png") ?
                      MediaType.parse("image/png") : MediaType.parse("image/jpeg");
              RequestBody imageBody = RequestBody.create(mediaType, file);
              mRequestBody.addFormDataPart("images", file.getName(), imageBody);
          }
      }
  
      RequestBody rb = mRequestBody.build();
  </code></pre>
  
  <p>This is the retrofit call : </p>
  
  <pre><code> @Multipart
  @POST("upload_images/")
  Call&lt;ResponseBody&gt; retrofitImageUpload(@Header("Authorization") String auth,
                                         @Header("Content-Type") String contentType,
                                         @Part("images") RequestBody req);
  </code></pre>