ICEfaces
  1. ICEfaces
  2. ICE-10914

ace:fileEntry - Support client-side validation of file types

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.3
    • Component/s: None
    • Labels:
      None
    • Environment:
      Any

      Description

      As mentioned in ICE-10777, it would be worth investigating if the HTML5 file input element can support client-side validation of file-type/extension. If so, we should add support for it (on supported browsers) as this would be more efficient than the current approach of uploading the file and then performing the type validation afterwards.

        Activity

        Hide
        Arturo Zambrano added a comment -

        r52148: added client-side file type validation via 'acceptType' attribute to single upload mode

        Note that this feature doesn't depend on HTML5, so it works on most browsers.

        Show
        Arturo Zambrano added a comment - r52148: added client-side file type validation via 'acceptType' attribute to single upload mode Note that this feature doesn't depend on HTML5, so it works on most browsers.
        Hide
        Arturo Zambrano added a comment -

        r52167: added client-side file type validation via 'acceptType' attribute to multiple upload mode; added support to specify a general MIME type category; added dialog to display localised error message

        Show
        Arturo Zambrano added a comment - r52167: added client-side file type validation via 'acceptType' attribute to multiple upload mode; added support to specify a general MIME type category; added dialog to display localised error message
        Hide
        Ken Fyten added a comment -

        Can you add this to the showcase fileEntry Validation demo? Currently validates on size but this would add optional type support as well.

        Show
        Ken Fyten added a comment - Can you add this to the showcase fileEntry Validation demo? Currently validates on size but this would add optional type support as well.
        Hide
        Arturo Zambrano added a comment -

        r52421: added Validate Type demo for ace:fileEntry

        Show
        Arturo Zambrano added a comment - r52421: added Validate Type demo for ace:fileEntry
        Hide
        Ken Fyten added a comment -

        Let's change the title of the new demo to "Client Validate Type" to distinguish it from the existing server-side validation, which also mentions type in the description.

        Show
        Ken Fyten added a comment - Let's change the title of the new demo to "Client Validate Type" to distinguish it from the existing server-side validation, which also mentions type in the description.
        Hide
        Arturo Zambrano added a comment -

        r52450: changed demo name to Client Validate Type

        Show
        Arturo Zambrano added a comment - r52450: changed demo name to Client Validate Type
        Hide
        Arturo Zambrano added a comment - - edited

        r52454: added CSS class name for the invalid type error dialog and moved default styling to this class, in order to allow developers to customize this dialog

        Added this information to the wiki page.

        Show
        Arturo Zambrano added a comment - - edited r52454: added CSS class name for the invalid type error dialog and moved default styling to this class, in order to allow developers to customize this dialog Added this information to the wiki page.

          People

          • Assignee:
            Arturo Zambrano
            Reporter:
            Arturo Zambrano
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: