title: Dropwizard 0.8.1 : multiple file upload
body: <p>I'm using dropwizard and I want to upload multiple files at once.</p>
  
  <p>How could I change my code to upload multiple files?</p>
  
  <p>I'm using <code>org.glassfish.jersey.media', 'jersey-media-multipart', '2.17'
  </code> for file upload.</p>
  
  <p>Here is my code for a single file upload :</p>
  
  <pre><code>@Path("/uploadPhoto")
  @ApiOperation(
          value = "Upload a photo for an Ad",
          response = Response.class)
  @POST
  @Timed
  @UnitOfWork
  @Consumes(MediaType.MULTIPART_FORM_DATA)
  @Produces(MediaType.APPLICATION_JSON)
  public Response fileUploaded(@FormDataParam("file") final InputStream inputStream,
                           @FormDataParam("file") final FormDataContentDisposition contentDispositionHeader) {
      List&lt;AdImage&gt; images = new ArrayList&lt;AdImage&gt;();
  
          images.add(writeImageAndSave(inputStream
                  , contentDispositionHeader));
      return Response.ok(toJson(images), MediaType.APPLICATION_JSON).build();
  
  }
  </code></pre>