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

Making MultiFileUploadField use HTML5 multiple attr & remove confusing fakepath

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 6.2.0
    • 6.6.0
    • wicket
    • None

    Description

      WICKET-3370 prepared the terrain (all major browsers except IE already support it).
      I will make a Git pull request for getting this into the master branch.
      Here is what the changes do (commit comment):

      Added the possibility to select multiple files in the OS dialog for
      browsers that support HTML5 'multiple' attribute. For browsers that do
      not support it, or if you do not set the boolean to true, it will behave
      the same as before.
      New:

      • easier select multiple files from multiple folders
      • shows the multiple files after choosing them - one per line
        Fixes:
      • the delete buttons are aligned instead of positioning after the
        variable length file names
      • useless and confusing "C:\fakepath" in filenames reported by some
        browsers (in multiple with single select mode) are now hidden.

      Attachments

        1. test1.zip
          25 kB
          Andrei Costescu
        2. fix-WICKET-4861.patch
          8 kB
          Andrei Costescu

        Issue Links

          Activity

            People

              mgrigorov Martin Tzvetanov Grigorov
              costescuandrei Andrei Costescu
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: