title: Can one http mutlipart request split up the file in multiple parts?
body: <p>Does the file in a form send as different parts in a <code>multipart/form-data</code> request ?</p>
  
  <p>I have to send a file as from my form to one REST end point .</p>
  
  <pre><code>import org.apache.poi.openxml4j.exceptions.InvalidFormatException;
  import org.jboss.resteasy.plugins.providers.multipart.InputPart;
  import org.jboss.resteasy.plugins.providers.multipart.MultipartFormDataInput;
  
  public class BulkUploadTask {
  
  
      public void readFile(MultipartFormDataInput input) throws IOException, InvalidFormatException{
  
          Map&lt;String, List&lt;InputPart&gt;&gt; uploadForm = input.getFormDataMap();
          List&lt;InputPart&gt; inputParts = uploadForm.get("file");
  
          for (InputPart part : inputParts) {
  
              InputStream inputStream = part.getBody(InputStream.class, null);
  
  
          }
      }
  
  }
  </code></pre>
  
  <p>This is the class which process the Multipart form data.</p>
  
  <p>But I didn't understand why the RestEasy API method <code>getFormDataMap</code> returns a list of <code>InputPart</code> :</p>
  
  <pre><code>List&lt;InputPart&gt; inputParts = uploadForm.get("file");
  </code></pre>
  
  <p>Can this <code>file</code> be splitted as different Parts ?</p>
  
  <p>Should I consider only the first part :</p>
  
  <p><code>uploadForm.get("file").get(0)</code>  ?</p>