Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 2.6.4, 2.7.1
-
Component/s: Assignment
-
Testing Instructions:
-
Affected Branches:MOODLE_26_STABLE, MOODLE_27_STABLE
-
Fixed Branches:MOODLE_26_STABLE, MOODLE_27_STABLE
-
Pull from Repository:
-
Pull Master Branch:MDL46887_assignment_file_max_size
-
Pull Master Diff URL:
Description
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)