Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-6270

No upload is seen as empty upload after WICKET-6210

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 8.0.0-M2, 6.25.0, 7.5.0
    • 7.6.0, 8.0.0-M3
    • wicket
    • None

    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

          Activity

            People

              svenmeier Sven Meier
              papegaaij Emond Papegaaij
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: