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

Workshop: Restricting file types as attachments to a workshop

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.2
    • Fix Version/s: 3.1
    • Component/s: Workshop
    • Testing Instructions:
      Hide

      The workshop settings form now provides two new fields: Submission attachment allowed file types and Feedback attachment allowed file types.

      • TEST 1: As a teacher, make sure that you can define list of allowed file extensions in these fields.
      • TEST 2: Some extensions (such as *.dia) may have to be registered first at Site administration > Server > File types to make them usable in these fields.

      There are two levels of protection where the uploaded files are being checked for having allowed file type:

      • TEST 3: The file picker should normally prevent you from uploading a file if its extension does not match one of the allowed ones.
      • TEST 4: If you bypass the filepicker check (e.g. by disabling javascript or by renaming the file only after it had been uploaded), attempting to upload a file with not allowed extension should still be prevented by Workshop custom validation rules.
      Show
      The workshop settings form now provides two new fields: Submission attachment allowed file types and Feedback attachment allowed file types . TEST 1: As a teacher, make sure that you can define list of allowed file extensions in these fields. TEST 2: Some extensions (such as *.dia) may have to be registered first at Site administration > Server > File types to make them usable in these fields. There are two levels of protection where the uploaded files are being checked for having allowed file type: TEST 3: The file picker should normally prevent you from uploading a file if its extension does not match one of the allowed ones. TEST 4: If you bypass the filepicker check (e.g. by disabling javascript or by renaming the file only after it had been uploaded), attempting to upload a file with not allowed extension should still be prevented by Workshop custom validation rules.
    • Affected Branches:
      MOODLE_30_STABLE
    • Fixed Branches:
      MOODLE_31_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-50794-master-workshop-restrict-filetypes

      Description

      Restricting file types as attachments to a workshop.
      In workshop module, there are two sections in the form (mod_form.php) where the workshop author can decide to allow attachments:
      1. Submission settings
      2. Feedback
      Here is an example scenario that students may upload attachments as part of their submissions and the reviewing students cannot download it and comment on it.

      There have been some problems with the formats of files submitted by students. Not all students completed their outlines as a Word .doc (despite this being the format of the template provided). Some formats (e.g. .pages) couldn’t be translated by some of the reviewing students. Therefore, they were unable to provide a review and the submitting students not receiving any comments.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                1 Vote for this issue
                Watchers:
                10 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  23/May/16