// set this form to multipart mode (always needed for uploads!)
setMultiPart(true);
// Add one multi-file upload field
add(new MultiFileUploadField("fileInput", new PropertyModel<Collection<FileUpload>>(
this, "uploads"), 5, true));
// Set maximum size to 100K for demo purposes
setMaxSize(Bytes.kilobytes(100));
}