Uploaded image for project: 'Commons Validator'
  1. Commons Validator
  2. VALIDATOR-152

JavaScript: Support 'mask' for file upload fields.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • Nightly Builds
    • None
    • None
    • None
    • Operating System: All
      Platform: All

    • 26585

    Description

      Since few browser support the 'accept' attribute for file upload input fields, I find it useful to
      specify a mask to validate that the uploaded file has a valid extension. It's not perfect, of course,
      but it seems like a trivial extension to add "file.type == 'file'" to the test to see whether or not to
      apply the mask to the given field.

      Attachments

        Activity

          People

            Unassigned Unassigned
            germuska Joseph Lad Germuska
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: