-
Bug
-
Resolution: Fixed
-
Minor
-
2.6.4, 2.7.1
-
MOODLE_26_STABLE, MOODLE_27_STABLE
-
MOODLE_26_STABLE, MOODLE_27_STABLE
-
MDL46887_assignment_file_max_size
-
When setting an assignment's file "Maximum submission size " to use the "Activity upload limit" (assignsubmission_file | maxbytes), it is not enforced, with the "Site upload limit" being used instead.
To reproduce
- Set assignsubmission_file | maxbytes to 20MB (or any value lower than the site upload limit, and substitute your value below).
- Create an assignment with "File submissions" enabled, leaving "Maximum submission size" as the "Activity upload limit (20MB)".
- View the assignment as a student, and view the "Add submission" form.
Expected results
- The "Maximum size for new files" is 20MB
Actual results
- The "Maximum size for new files" is the site limit (e.g. 100MB)