You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by Gokul Poduval <go...@nus.edu.sg> on 2003/07/21 12:20:59 UTC

fileUpload

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: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org


YNT: fileUpload

Posted by Ender Hikmet KILICODLU <en...@kilicoglu.nom.tr>.
I thing turbine process and empty posting data for multi valued submit. So
you need to use this service or disable it

Ender


-----Ozgun Ileti-----
Kimden: Gokul Poduval [mailto:gokul.poduval@nus.edu.sg]
Tarih: Monday, July 21, 2003 1:21 PM
Kime: jetspeed-user@jakarta.apache.org
Konu: fileUpload


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: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org