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

Workshop: Restricting file types as attachments to a workshop

XMLWordPrintable

    • 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.

      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.

            mudrd8mz David Mudrák (@mudrd8mz)
            mkassaei Mahmoud Kassaei
            Mahmoud Kassaei Mahmoud Kassaei
            Dan Poltawski Dan Poltawski
            Damyon Wiese Damyon Wiese
            Votes:
            1 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved:

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