commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mihael Knezevic <>
Subject [FileUpload] How to pass parameter along with the upload file in a multipart/form-data
Date Fri, 06 May 2005 14:18:41 GMT

i got the uploading of a file running but now i want to pass some parameter 
with it. what do i need to put in the html form and how do i get it from the 
request object?

my html form:

<form  ENCTYPE='multipart/form-data' method='POST' frm='frmUploadCatalog' 
 <input type='hidden' name='action' value='uploadCatalog'>
 <div align='center'><h4>Katalog hochladen</h4></div>
 Wählen Sie einen Katalog aus: <input type='file' name='catalog'>
 <input type='radio' name='type' value='file' checked> als einzelne Datei
 <input type='radio' name='type' value='jar'> als Archivdatei (mehrere 
 <input type='submit' name='absenden' value='hochladen'>

i like to get the value of the input field with the name type (radio buttons) 
but don't know how.

thanx in advance.


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

View raw message