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

Workshop: Restricting file types as attachments to a workshop

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.0.2
    • 3.1
    • Workshop
    • MOODLE_30_STABLE
    • MOODLE_31_STABLE
    • MDL-50794-master-workshop-restrict-filetypes
    • 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.

    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

        1. Screenshot_2016-02-24_13-33-58.png
          7 kB
          David Mudrák (@mudrd8mz)
        2. Screenshot_2016-02-24_13-47-42.png
          38 kB
          David Mudrák (@mudrd8mz)
        3. screenshot-1.png
          5 kB
          David Mudrák (@mudrd8mz)

        Issue Links

          Activity

            People

              mudrd8mz David Mudrák (@mudrd8mz)
              mkassaei Mahmoud Kassaei
              Mahmoud Kassaei Mahmoud Kassaei
              Dan Poltawski Dan Poltawski
              Damyon Wiese Damyon Wiese
              Amaia Anabitarte, Carlos Escobedo, Laurent David, Mikel Martín Corrales, Sabina Abellan, Sara Arjona (@sarjona)
              Votes:
              1 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                23/May/16