title: multipart/form parameter is coming null
body: <p>I'm trying to get the request parameters that are sent by a form enctype "multipart/form-data". I am using apache commons fileupload.</p>
  
  <p>My code is below.   </p>
  
  <pre><code>FileItemFactory factory = new DiskFileItemFactory();
  ServletFileUpload upload = new ServletFileUpload(factory);
  List items = upload.parseRequest(req);
  Iterator uploadIterator = items.iterator();
  
  while(uploadIterator.hasNext()){
  FileItem uploadedItem = (FileItem) uploadIterator.next();
  
  
  if (uploadedItem.isFormField()){
  
    if (uploadedItem.getFieldName().equals("name")){
      name = uploadedItem.getString();
    }
  }else{
    //Uploaded files comes here
  }
  </code></pre>
  
  <p>The HTML code of the form is:</p>
  
  <pre><code>&lt;form name="form" id="form" method="post" action="ServletIncluirEvento"
      enctype="multipart/form-data"&gt;
  ... //Here comes a lot of inputs (I changed the name of the attribute because I am from Brazil and the names are in portuguese)
  
  &lt;select size="9" id="idOpcoesSelecionadas" name="opcoesSelecionadas" multiple style="width: 100%;"&gt;
                                              &lt;%  
   it =  colecaoUsuarioSelecionado.iterator();                             String name= "";
   while (it.hasNext()) {
   usuario = (Usuario) it.next();
   name += usuario.getName() + "/"; %&gt;
   &lt;option value="&lt;%=usuario.getLogin()%&gt;"&gt;
      &lt;%=usuario.getName()%&gt;
   &lt;/option&gt;
  &lt;%
    }
  %&gt;&lt;/select&gt;
  
  &lt;input type="hidden" value="&lt;%=name%&gt;" name="name" /&gt;
  </code></pre>
  
  <p>Even so the parameter is coming null.</p>
  
  <p>Someone knows how to solve?</p>
  
  <p>Thank you in advance</p>