title: Spring upload multiple file how to identify each file?
body: <p>I want to upload multiple files. And I need to identify each file in the backend. I want to use the name in the dom element, but if I give every input a different name, my spring controller will not get the multiple files.The files of my form is not fixed. I also have to render different files input by user's change. So The controller part must not be fixed style, need to be a array.</p>
  
  <pre><code>&lt;input type="file" name="files" /&gt;
  &lt;input type="file" name="files" /&gt;
  
  
  @RequestParam("files") MultipartFile[] files
  </code></pre>
  
  <p>I have searched but not found some help. My only solution is to pass some extra information to the backend to identify each file. Any suggestions would be helpful. Thanks in advance!</p>