commons-user mailing list archives

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

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"
action="upload.jsp">
<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">
</p>
</form>


Eric

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


Mime
View raw message