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

Essay question file type restriction doesn't validate extension

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 3.8.6, 3.9.3, 3.10
    • Questions
    • MOODLE_310_STABLE, MOODLE_38_STABLE, MOODLE_39_STABLE

      The essay question's file type restriction only validates on mimetype, not actual extension, meaning that many files can be substituted for each other, like a .txt and a .java, both of which are text/plain.

      The assign tool, which has a similar restriction, uses the mimetype restriction at the upload step (since I think that is all the filepicker supports currently...) but does a validation when you try and save, and won't let you continue if there files with unallowed extensions.

      The question should follow the same scheme (or filepicker should be updated to allow direct limitation of file extension, not just mime).

            Unassigned Unassigned
            emerrill Eric Merrill
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

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