ICEfaces
  1. ICEfaces
  2. ICE-1080

Feature request: InputFile needs "ice:acceptedFileTypesValidator"

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.5.1
    • Fix Version/s: 1.6DR#1, 1.6
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      Operating System: Windows XP
      Platform: PC

      Description

      noted in the forum: http://www.icefaces.org/JForum/posts/list/0/3110.page#14971

      We need to allow the developer to define what file types are acceptable to
      upload. Currently, it doesn't seem that there's any way to do this through the
      actionListener or progressListener as there's no access to the file information
      until it's completely uploaded.

        Activity

        Hide
        Adnan Durrani added a comment -

        Fixed -r 13016

        The new fileNamePattern have been added to the inputFile component. Which
        allows to define the acceptable type of files to be uploaded using the regular
        expression. If file does not conform the defined pattern the component throws
        Fileupload exception and the actionEvent being invoked.

        The default pattern being set to ".+" to accept any file. The metadata has
        been updated with comments.

        Show
        Adnan Durrani added a comment - Fixed -r 13016 The new fileNamePattern have been added to the inputFile component. Which allows to define the acceptable type of files to be uploaded using the regular expression. If file does not conform the defined pattern the component throws Fileupload exception and the actionEvent being invoked. The default pattern being set to ".+" to accept any file. The metadata has been updated with comments.
        Hide
        Tony Herstell added a comment -

        I have looked at the doco supplied with 1.6DR#1 but cannot find how to use this.
        I am assuming its something like
        ".gif, .jpg, ..."

        Show
        Tony Herstell added a comment - I have looked at the doco supplied with 1.6DR#1 but cannot find how to use this. I am assuming its something like ".gif, .jpg, ..."

          People

          • Assignee:
            Unassigned
            Reporter:
            Philip Breau
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: