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

        Philip Breau created issue -
        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.
        Icefaces Administrator made changes -
        Field Original Value New Value
        issue.field.bugzillaimportkey 1106 12349
        Ken Fyten made changes -
        Fix Version/s 1.6DR1 [ 10035 ]
        Fix Version/s 1.6 [ 10031 ]
        Ken Fyten made changes -
        ICEfaces Forum Reference http://www.icefaces.org/JForum/posts/list/0/3110.page#14971
        Affects [Documentation (User Guide, Ref. Guide, etc.), Sample App./Tutorial, Compatibility/Configuration]
        Ken Fyten made changes -
        Affects [Documentation (User Guide, Ref. Guide, etc.), Sample App./Tutorial, Compatibility/Configuration] [Documentation (User Guide, Ref. Guide, etc.), Sample App./Tutorial]
        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, ..."
        Ken Fyten made changes -
        Fix Version/s 1.6 [ 10031 ]
        Ken Fyten made changes -
        Summary Feature request: InputFile needs <ice:acceptedFileTypesValidator/> Feature request: InputFile needs "ice:acceptedFileTypesValidator"
        Affects [Sample App./Tutorial, Documentation (User Guide, Ref. Guide, etc.)] [Documentation (User Guide, Ref. Guide, etc.), Sample App./Tutorial]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Assignee Adnan Durrani [ adnan.durrani ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: