[ 
https://issues.apache.org/jira/browse/WICKET-6270?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15644990#comment-15644990
 ] 

ASF subversion and git services commented on WICKET-6270:
---------------------------------------------------------

Commit 2135f7b7d2e77d1c7a70cb03da744e0f4ef2de29 in wicket's branch 
refs/heads/master from [~svenmeier]
[ https://git-wip-us.apache.org/repos/asf?p=wicket.git;h=2135f7b ]

WICKET-6270 check name of uploaded file is not empty


> 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