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