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

admin_setting_filetypes should validate for unknown filetypes

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • 4.0
    • 3.10
    • Administration
    • MOODLE_310_STABLE
    • MOODLE_400_STABLE
    • Hide
      1. Navigate to Plugins > Media players > VideoJS player in site administration
      2. Set Audio file extensions to: "html_audio .foo .bar" and save changes
      3. Confirm you see the error: "Unknown file types: .foo, .bar"
      4. Set Audio file extensions to: "html_audio .doc .pdf" and save changes
      5. Confirm you see the error: "These file types are not allowed here: .doc, .pdf"
      6. Set Audio file extensions to: "html_audio .mp3" and save changes
      7. Confirm you see the success message: "Changes saved"
      Show
      Navigate to Plugins > Media players > VideoJS player in site administration Set Audio file extensions to: "html_audio .foo .bar" and save changes Confirm you see the error: "Unknown file types: .foo, .bar" Set Audio file extensions to: "html_audio .doc .pdf" and save changes Confirm you see the error: "These file types are not allowed here: .doc, .pdf" Set Audio file extensions to: "html_audio .mp3" and save changes Confirm you see the success message: "Changes saved"

      Currently the form/filetypes formelement performs filetype validation for unknown file types when entered, and blocks submission. This validation should be shared for the admin_setting_filetype, which currently accepts unknown filetypes, and displays them as File (.xxx)

      An alternative would be a message stating that the file should be added to the system file types through the admin tool.

        1. Assingment.png
          Assingment.png
          30 kB
        2. MDL-68927.jpg
          MDL-68927.jpg
          49 kB
        3. MDL-68927.png
          MDL-68927.png
          30 kB

            pholden Paul Holden
            peterburnett Peter Burnett
            Simey Lameze Simey Lameze
            Adrian Greeve Adrian Greeve
            Anna Carissa Sadia Anna Carissa Sadia
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours, 26 minutes
                2h 26m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.