Iterating over multiple file uploads

jason thompson

Greenhorn

Posts: 9

posted 2 years ago

Is there a way to get the keySet from an Iterator? I am trying to implement multiple file uploads using apache commons fileupload. I need to get the filenames from all of the files selected and pass them all to add as attachments.

The below works for one attachment at a time:

But of course, I want to be able to iterate over every file selected to add as attachments.