final String[] filenames = getInputAsArray();
if (filenames != null)
{
final IMultipartWebRequest request = (IMultipartWebRequest)getRequest();
uploads = new ArrayList<FileUpload>(filenames.length);
for (int i = 0; i < filenames.length; i++)
{
uploads.add(new FileUpload(request.getFile(filenames[i])));
}
}
return uploads;