Emond Papegaaij created WICKET-6270:
---------------------------------------

             Summary: No upload is seen as empty upload after WICKET-6210
                 Key: WICKET-6270
                 URL: https://issues.apache.org/jira/browse/WICKET-6270
             Project: Wicket
          Issue Type: Bug
          Components: wicket
    Affects Versions: 7.5.0, 6.25.0, 8.0.0-M2
            Reporter: Emond Papegaaij


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:
{code}
if (item != null && (item.getSize() > 0 || !Strings.isEmpty(item.getName)))
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to