title: Swagger UI how to display upload of multiple files
body: <p>I've a Spring MVC application that is wrapped with Swagger annotations.</p>
  
  <pre><code>&lt;spring.version&gt;4.1.8.RELEASE&lt;/spring.version&gt;
  &lt;java-version&gt;1.7&lt;/java-version&gt;
  &lt;springfox-version&gt;2.1.2&lt;/springfox-version&gt;
  </code></pre>
  
  <p>I've a controller with two resource endpoints to allow file upload - one endpoint for a single file upload and other with multiple file upload.</p>
  
  <p>Single file upload --></p>
  
  <pre><code>public @ResponseBody UploadAPIResponse postInboundFile(
                      @ApiParam(value = "file to upload") @RequestParam("file") MultipartFile file,
                      @ApiParam(value = "Inbound trigger flag ") @RequestParam("triggerInbound") Boolean triggerInbound)
                      throws SQLException, Exception {
  </code></pre>
  
  <p>Multi file upload --></p>
  
  <pre><code>public @ResponseBody BulkUploadAPIResponse postInboundFilesAsync(
                      @ApiParam(value = "files to upload") @RequestParam("files") MultipartFile[] files,
  
                      @ApiParam(value = "Inbound trigger flag ") @RequestParam("triggerInbound") Boolean triggerInbound,
  
                      HttpServletRequest request) throws SQLException, Exception {
  </code></pre>
  
  <p>On viewing the Swagger UI for the api documentation, 
  I see that for single file upload API, against the "file" parameter, I get a file upload button.</p>
  
  <p>However for the multi file upload API, I get the "files" parameter as a text box.</p>
  
  <p>Can someone pls help me how can I get a file upload button against the "files" parameter of multi-files upload API and I'm able to upload multiple files as part of <em>single</em> request ?</p>
  
  <p>I've gone through various other posts on this context but not able to find a concrete approach to address this issue.</p>
  
  <p>PS : I've the understanding that naming the parameter as "file" provides the file upload button automatically through Swagger-UI. I tried to use the parameter name as "file" instead of "file<strong>s</strong>" for the multi-file upload API but that didn't help; i still end up getting a text box (probably reason being that argument is an <em>array</em> of <code>MultipartFile</code>).</p>
  
  <p>Thanks in advance for any pointers/suggestions.</p>