a question about uploading files...  
Author Message
Frances Del Rio





PostPosted: 2005-5-9 6:56:00 Top

java-programmer, a question about uploading files... I'm using jakarta.commons.FileUplaod to upload a file and it's working
fine (followed what I read in
http://www.onjava.com/pub/a/onjava/2003/06/25/commons.html?page=3)

only thing I would like to know is, is it possible to upload more than
one file at a time? (I mean is it possible to write code so in "choose
file" dialog you can select more than one file?)

I asked in jakarta.commons listserv (gmane.comp.jakarta.commons.user)
about two days ago, but well, still haven't gotten response (and am not
even sure whether this is strictly a jakarta.commons.FileUpload question
or a general java question..) thank you.. Frances

 
Oscar kind





PostPosted: 2005-5-9 13:51:00 Top

java-programmer >> a question about uploading files... Frances Del Rio <email***@***.com> wrote:
> I'm using jakarta.commons.FileUplaod to upload a file and it's working
> fine (followed what I read in
> http://www.onjava.com/pub/a/onjava/2003/06/25/commons.html?page=3)
>
> only thing I would like to know is, is it possible to upload more than
> one file at a time? (I mean is it possible to write code so in "choose
> file" dialog you can select more than one file?)

No; this is a limitation of the HTML file input tag. You can upload
multiple files using multiple tags though. You may also want to check the
field name for each file input you encounter to determine which is which.


--
Oscar Kind http://home.hccnet.nl/okind/
Software Developer for contact information, see website

PGP Key fingerprint: 91F3 6C72 F465 5E98 C246 61D9 2C32 8E24 097B B4E2
 
Frances Del Rio





PostPosted: 2005-5-10 1:24:00 Top

java-programmer >> a question about uploading files...

Oscar kind wrote:
> Frances Del Rio <email***@***.com> wrote:
>
>>I'm using jakarta.commons.FileUplaod to upload a file and it's working
>>fine (followed what I read in
>>http://www.onjava.com/pub/a/onjava/2003/06/25/commons.html?page=3)
>>
>>only thing I would like to know is, is it possible to upload more than
>>one file at a time? (I mean is it possible to write code so in "choose
>>file" dialog you can select more than one file?)
>
>
> No; this is a limitation of the HTML file input tag. You can upload
> multiple files using multiple tags though. You may also want to check the
> field name for each file input you encounter to determine which is which.

oh well... thank you Oscar..