Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-14750

Fileupload form should not set invalid attributes for file input

    Details

    • Type: Improvement
    • Status: Unverified Fix (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.1.9
    • Fix Version/s: 3.1.11-RC1
    • Component/s: Posting
    • Labels:
      None

      Description

      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" />
      

        Attachments

          Activity

            People

            • Assignee:
              Marc Marc
              Reporter:
              kinerity Kailey Truscott
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: