Some of our teachers have students upload files in e-exams. In the Quiz results, it is not possible to download all submitted files at one time, all attachments of essay questions need to be downloaded individually. As a workaround, our teachers use the activity Assignment where submitted files can be downloaded quickly. The Quiz should also have an option to download all files at one time. Please vote for this improvement, see issue MDL-58944
I would like to take up this project since I have done some similar kind of work while developling a plugin called ‘Merge PDF Files’ (a plugin for merging all the course pdf documents).
I have recently submitted an initial version of this plugin in Moodle plugins Directory for approval process.
The ‘Merge PDF Files’ plugin offers the users a convenient way by which they can merge the PDF documents in a Moodle course.
Plugins directory : https://moodle.org/plugins/report_mergefiles
Also, what is the procedure/requirements for getting assigned to a particular issue in Moodle Tracker.
I would like to propose a solution regarding the naming convention of the zip folder that would get downloaded after we click on the report link for 'download all files' in moodle quiz settings menu.
For assignment module, the downloaded file has naming convention that looks like :
for example => Anisha Gadvi_2_assignsubmission_file_filename
For quiz module, I would like to propose a hierarchy of folders concerning user and quiz related information, something like :
=> user_name / attempt_id / question_id / file_name
We have made an attempt at creating a plugin to download quiz essay submissions.
This plugin can be downloaded from github: Click here!
Use it and do give us your valueable feedback.
moodle-quiz_downloadsubmissions - Moodle Quiz Report Plugin for downloading essay submissions.
The ‘Download essay submission’ plugin offers users a convenient way by which teachers can download quiz essay attachments submitted by students in response to quiz essay questions.
- The plugin folder ‘downloadsubmissions’ is to be added under ‘moodle/mod/quiz/report’ directory.
How to use?
Go to a particular quiz.
Click on 'Settings' icon.
The plugin ‘Download essay submissions’ link will appear under ‘Results’ section. Click on it.
- Then, the teacher needs to click on the button ‘Download essay submissions’.
- On clicking this button, the teacher will get a zip file consisting of attachments/files submitted by students in response to the quiz essay questions.
The hierarchy of folders present in the downloaded zip file is explained through an example.
Example: Quiz Scenario
A Quiz (Programming Tutorial) has an essay question (Question No.: 3, Question name: OOP Concept) requiring attachments/files to be submitted in response by students.
A student (Student name: Anisha Patki, Username: anisha) attempts the quiz twice, each time attaching a response file to that particular essay question.
The files submitted by the student as responses are:
- First Attempt - Answer.odt
- Second attempt - New_answer.pdf
Now, in the downloaded zip file, the folder hierarchy for this particular student's response files is as follows:
- Q8 - OOP Concept / anisha - Anisha Patki / Attempt1_Answer.odt
- Q8 - OOP Concept / anisha - Anisha Patki / Attempt2_New_answer.pdf
(Note: Here, in 'Q8', '8' is the database question id for that particular question and may not match the question no. as it appeared in the quiz as shown in the example above.)
Through this feature, now teachers will be able to download/save all attachments of all attempts submitted by students in response to the quiz essay questions at one time.
This is a real good plugin.
I am trying to use it in 3.3 and have downloaded this from repo given
But it is giving error below
Coding error detected, it must be fixed by a programmer: Invalid state passed to moodle_page::set_state. We are in state 0 and state 3 was requested.
Error code: codingerror
- line 970 of \lib\pagelib.php: coding_exception thrown
- line 1216 of \lib\outputrenderers.php: call to moodle_page->set_state()
- line 100 of \mod\quiz\report.php: call to core_renderer->footer()
Thank you for trying this plugin and also pointing out the error.
I have updated the plugin code on the github repo by removing the erroneous code.
Do try it again and let me know your feedback.