How can you select multiple files for upload to a servlet? The browse button on my form only allows me to choose one file at a time.

Jorge Jordão

Just as an <INPUT TYPE="text"> component only allows you to specify a single (text) value, an <INPUT TYPE="file"> component only specifies one file.

You'll have to put as many file components in your page as the number of files you want to upload. Remember to assign a different NAME attribute value to each.

[See also How do I upload a file to my servlet? ]

[Does anyone have a more elegant solution? -Alex]

0 Comments  (click to add your comment)
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



About | Sitemap | Contact