[ 
https://issues.apache.org/jira/browse/WICKET-6270?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sven Meier reassigned WICKET-6270:
----------------------------------

    Assignee: Sven Meier

> 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: 8.0.0-M2, 6.25.0, 7.5.0
>            Reporter: Emond Papegaaij
>            Assignee: Sven Meier
>
> 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