Details
Description
After WICKET-6210, FileUploadFiels always have a FileUpload, even if no file is actually uploaded. When the field is left empty, an empty FileUpload is created. It has no content and no filename. This broke several pages in our application.
IMHO, the check that was removed in WICKET-6210 should be reintroduced, but as:
if (item != null && (item.getSize() > 0 || !Strings.isEmpty(item.getName)))
Attachments
Issue Links
- is broken by
-
WICKET-6210 FileUpload does not support files of zero size
- Resolved