title: How to iterate over uploaded files in Grails
body: <p>I have this GSP:</p>
  
  <pre><code>&lt;g:uploadForm name="myForm" action='save'&gt;    
      &lt;input type='file' name='documentFile' value=''/&gt;
      &lt;input type='file' name='documentFile' value=''/&gt;
      &lt;input type='file' name='documentFile' value=''/&gt;
      &lt;input type='file' name='documentFile' value=''/&gt;
      &lt;input type='submit' value='Submit'/&gt;
  &lt;/g:uploadForm&gt;
  </code></pre>
  
  <p>But when I tried to view the result in controller by typing:</p>
  
  <pre><code>render(params);
  return true;
  </code></pre>
  
  <p>I got this result:</p>
  
  <pre><code>"documentFile":org.springframework.web.multipart.commons.CommonsMultipartFile@14dcf95
  </code></pre>
  
  <p>How do I read each file that is being uploaded? 
  Could I get the following?</p>
  
  <pre><code>documentFile:[File,null,File,null] // (if the 2nd and the 4th are not being used)
  </code></pre>
  
  <p>ps: I'm using grails 1.2.2</p>