Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-60032

Hints accepted types in OS in file picker

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.4
    • Fix Version/s: None
    • Component/s: Filepicker
    • Labels:
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_34_STABLE

      Description

      Now that we have improved support for restricted file types in the file picker, there's no reason not to add hints to the browse button so the OS will only let you select the types that would be accepted.

      For reference: http://caniuse.com/input-file-accept/embed But we already have server side checks for this, so that's not an issue.

      Example:

      <input type="file" accept=".xls,.xlsx" />
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              johno John Okely
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated: