You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by Veerappan Sridhar <vs...@novell.com> on 2005/07/26 16:29:19 UTC
How to hold multiple files in single #fileupload in velocity
Hi,
1) pls clear my doubt.Here i have single #fileupload and file, file
holds only single value, but i want to hold multiple value in this
file.how to do that?
<tr>
#fileUpload ("File" "file")
</tr
or
2)i hold multiple files in in a text area, how to parse String to
getFileItem(..),since it is throwing an exception.
FileItem fileItem = params.getFileItem("file");
fileItem.write(new
File(TurbineServlet.getRealPath("/uploaded.file")));
Thanks and Regards
Sridhar
---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-dev-help@jakarta.apache.org
Re: How to hold multiple files in single #fileupload in velocity
Posted by Tony Oslund <ao...@bevcomm.net>.
Search the mailing list for this topic. There have been multiple hits on
the turbine mailing list on how to solve this.
----- Original Message -----
From: "Veerappan Sridhar" <vs...@novell.com>
To: <tu...@jakarta.apache.org>; <ve...@jakarta.apache.org>;
<ve...@jakarta.apache.org>
Sent: Tuesday, July 26, 2005 9:29 AM
Subject: How to hold multiple files in single #fileupload in velocity
> Hi,
> 1) pls clear my doubt.Here i have single #fileupload and file, file
> holds only single value, but i want to hold multiple value in this
> file.how to do that?
> <tr>
> #fileUpload ("File" "file")
> </tr
> or
> 2)i hold multiple files in in a text area, how to parse String to
> getFileItem(..),since it is throwing an exception.
>
>
> FileItem fileItem = params.getFileItem("file");
> fileItem.write(new
> File(TurbineServlet.getRealPath("/uploaded.file")));
>
> Thanks and Regards
> Sridhar
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org