I need to create a form that will allow, among other things, a user to upload an unknown number of files to the server running Tomcat. It would be nice if the form could add upload slots to the form as needed. I haven’t found much useful on the subject, so I thought I would poll the community.
Share
You need an ajax enabled form that can add/remove input file elements:
Using jQuery:
If you use Apache Commons FileUpload, then the server code is the same, no matter how many files are sent. FileUpload allows you to iterate over all uploaded files.