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

Sven Meier resolved WICKET-6270.
--------------------------------
       Resolution: Fixed
    Fix Version/s: 8.0.0-M3
                   7.6.0
                   6.26

File name is now used to identify an empty file input.

> 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
>             Fix For: 6.26, 7.6.0, 8.0.0-M3
>
>
> 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