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

File type restrictions for Quiz essay question type

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      1. Create a new quiz.
      2. Add a new essay question to said quiz; set "allow attachments" to 1; set "Files of these types may be added to the submission:" to ".pdf; .java".
      3. Log in as a student and attempt the quiz.
      4. Try to drag and drop a file of type *.xlsx to the file area; you should be shown a warning.
      5. Try to drag and drop a file of type *.pdf to the file area; you should be shown no warning.

      Backup/restore

      • You need a course with a lot of essay questions with file restrictions.
      • Back it up and restore it, and verify there are no regressions.
      • Try some variants like restoring into an existing course, or duplicating a quiz with essay questions.
      • Try some variants including restoring a course from a previous Moodle version and essay questions into a version with this patch included.
      • Try some variants including backuping a course from a Moodle version with this patch included and essay questions into a older version without this patch included.
      Show
      1. Create a new quiz. 2. Add a new essay question to said quiz; set "allow attachments" to 1; set "Files of these types may be added to the submission:" to ".pdf; .java". 3. Log in as a student and attempt the quiz. 4. Try to drag and drop a file of type *.xlsx to the file area; you should be shown a warning. 5. Try to drag and drop a file of type *.pdf to the file area; you should be shown no warning. Backup/restore You need a course with a lot of essay questions with file restrictions. Back it up and restore it, and verify there are no regressions. Try some variants like restoring into an existing course, or duplicating a quiz with essay questions. Try some variants including restoring a course from a previous Moodle version and essay questions into a version with this patch included. Try some variants including backuping a course from a Moodle version with this patch included and essay questions into a older version without this patch included.
    • Affected Branches:
      MOODLE_32_STABLE, MOODLE_33_STABLE, MOODLE_34_STABLE
    • Fixed Branches:
      MOODLE_35_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-58411-master

      Description

      Within the essay question type file, there is a way to have students upload a file or several files (see MDL-49208).
      Unlike for the file upload in assignments (see MDL-39913) it would be great to have restrictions for the filetypes in the essay question type as well.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                9 Vote for this issue
                Watchers:
                13 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  17/May/18