title: I need the Jersey Multipart Client and server code to Upload more than one file.?
body: <p>I need the Jersey Multipart Client to Upload more than one file.</p>
  
  <p>I am able to upload a Single file but how can i upload more than one file.</p>
  
  <p>In the client i set the two filedatabody parts.</p>
  
  <pre><code>final FileDataBodyPart filePart = new FileDataBodyPart("file", new File("path"));
  
  FormDataMultiPart formDataMultiPart = new FormDataMultiPart();
  
  FileDataBodyPart filePart2 = new FileDataBodyPart("file", new File("path2"));
  final FormDataMultiPart multipart =
      (FormDataMultiPart) formDataMultiPart.field("foo", "bar").bodyPart(filePart).bodyPart(filePart2);
  </code></pre>
  
  <p>How to write the server side code.</p>