-
New Feature
-
Resolution: Won't Fix
-
Minor
-
None
-
2.1
-
None
-
MySQL
-
MOODLE_21_STABLE
-
master_
MDL-28335 -
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
- has a non-specific relationship to
-
MDL-7206 Can not download all submitted assignment at once compressed in one single zip file
-
- Closed
-