commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Chow <>
Subject Multipart File Upload
Date Tue, 18 Jan 2005 10:21:52 GMT

How can I upload multi files with differents HTML form fields at th e
same FORM ?

How can I get the specific field by giving its name in JSP ? For
instance, I want to get the file name of File1 and the description22,
how can I do that ?

The following is a FORM example,

<form name="Form1" enctype="multipart/form-data" method="post"
<p>File 1<input type="file"name="File1" size="20" maxlength="20"> </p>
<p>Description 1.1<input type="text" name="File11" size="30"
maxlength="50"> </p>
<p>Description 1.2<input type="text" name="File12" size="30"
maxlength="50"> </p>
<p>File 2<input type="file" name="File2" size="20" maxlength="20"> </p>
<p>Description 2.1<input type="text" name="File21" size="30"
maxlength="50"> </p>
<p>Description 2.2<input type="text" name="File22" size="30"
maxlength="50"> </p>
<p>File 3<input type="file" name="File3" size="20" maxlength="20"> </p>
<p>Description 3.1<input type="text" name="File31" size="30"
maxlength="50"> </p>
<p>Description 3.2<input type="text" name="File32" size="30"
maxlength="50"> </p>
<p> <input type="submit"value="Upload"> <input type="reset" value="Clear">


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message