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

Bulk upload of feedback files

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Won't Fix
    • Icon: Minor Minor
    • None
    • 2.1
    • Assignment (2.2)
    • None
    • MySQL
    • MOODLE_21_STABLE
    • master_MDL-28335
    • Hide

      Create an advanced upload assignment.
      login as a student, submit some files.
      log back in as teacher, view submissions page and hit "download all assignments" in top right

      make some changes to the files in the zip - annotations etc, zip files up again (make sure there isn't an extra folder and all files are in the root of the zip)
      use the bulk upload form to upload response files (link under the download all submissions page)
      then click on "update" links in submissions view to see the response file has been uploaded.

      Show
      Create an advanced upload assignment. login as a student, submit some files. log back in as teacher, view submissions page and hit "download all assignments" in top right make some changes to the files in the zip - annotations etc, zip files up again (make sure there isn't an extra folder and all files are in the root of the zip) use the bulk upload form to upload response files (link under the download all submissions page) then click on "update" links in submissions view to see the response file has been uploaded.

      We have a requirement for our academics to be able to bulk upload feedback files. This may be annotated student submissions, or new files. We also need to be able to upload feedback for students that have not submitted. We have already developed this feature for 1.9 but it has to be rewritten for 2.1 due to the major changes on the file system.

      Below is a brief outline of the proposal:

      Edit the existing bulk download code:
      To include blank files for students that have not submitted? Need to decide which file extension to use, maybe txt? Naming convention would be no_submission_<userid>.txt

      Create a form object for bulk upload which has a filemanager element
      (similar to class mod_assignment_upload_response_form - mod/assignment/type/upload/assignment.class.php ln 1170)

      On upload:
      Write new function upload_responses() similar to upload_response() - mod/assignment/type/upload/assignment.class.php ln 498
      Stores zip file in virtual temp location
      Unzips
      Loops through the contents
      Extracts the student id from the file name
      Uses function file_postupdate_standard_filemanager() to move each file to the correct virtual location

      Error checking:
      Log and give message regarding any files which fail eg if student id is not valid

            danmarsden Dan Marsden
            amanda.doughty Amanda Doughty
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

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