Friday, May 10, 2002 01:27 AM
I'am using com.oreilly package to upload a file, but I can only upload one, how can I upload multiple files?
I will be very glad if someone can help me.
Re: how can I upload multiple files?
Sunday, May 12, 2002 03:33 AM
There is an example webapp bundled with the com.oreilly.servlet package demonstrating multi-file upload. Deploy upload.war in your servlet container. The MultipartRequest class allows you to get the names of all uploaded files with the method getFileNames(). You can iterate through all file names an get each file using getFile(filename).