I am trying to make a portlet to perform fileUpload. My .vm file is as follows -


<form method="post" enctype="multipart/form-data" action="$jslink.setAction("portlets.FileUpload")">
<table width="40%">
#fileUploadField ("file")
<tr align="center">
<td colspan=2>
<input type="submit" name="eventSubmit_doUpdate" value="Submit" />
</td>
</tr>
</table>
</form>


However, when when I check the HttpServletRequest, I am getting lot of headers, but no header with the file information. This is how the action class looks like.

                HttpServletRequest request = rundata.getRequest();
                DiskFileUpload upload = new DiskFileUpload();
                List items = upload.parseRequest(request);

But when I check the items list, it turns out to be empty. Any idea on whats wrong with the velocity template ?

Gokul






--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to