Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-14750

Fileupload form should not set invalid attributes for file input

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.1.11-RC1
    • 3.1.9
    • Posting
    • None

      Was validating part of an extension I coded when I cam across some validation errors. I tested on a clean install and the issue still appeared.

      Error: Attribute value not allowed on element input at this point.

      <input type="file" name="fileupload" id="fileupload" maxlength="0" value="" class="inputbox autowidth" />
      

      Error: Attribute maxlength is only allowed when the input type is email, password, search, tel, text, or url.

      <input type="file" name="fileupload" id="fileupload" maxlength="0" value="" class="inputbox autowidth" />
      

            Marc Marc
            kinerity Kailey Truscott [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: