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

Assignment file "Maximum submission size " set to "Activity upload limit" not enforced

XMLWordPrintable

    • MOODLE_26_STABLE, MOODLE_27_STABLE
    • MOODLE_26_STABLE, MOODLE_27_STABLE
    • MDL46887_assignment_file_max_size
    • Hide
      1. In plugins settings for assignment file submission specify the file size limit below the site limit
      2. Create a course with default upload limit
      3. Create an assignment with file submission
      4. As a student make sure that you have limit from #1 when submitting assignment
      5. Change the limit for a particular assignment
      6. As a student make sure that you have limit from #5 when submitting assignment
      7. Change the course limit to a value smaller than assignment limit
      8. As a student make sure that you have limit from #7 when submitting assignment
      Show
      In plugins settings for assignment file submission specify the file size limit below the site limit Create a course with default upload limit Create an assignment with file submission As a student make sure that you have limit from #1 when submitting assignment Change the limit for a particular assignment As a student make sure that you have limit from #5 when submitting assignment Change the course limit to a value smaller than assignment limit As a student make sure that you have limit from #7 when submitting assignment

      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

      1. Set assignsubmission_file | maxbytes to 20MB (or any value lower than the site upload limit, and substitute your value below).
      2. Create an assignment with "File submissions" enabled, leaving "Maximum submission size" as the "Activity upload limit (20MB)".
      3. 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)

            balchd Dave Balch
            balchd Dave Balch
            Damyon Wiese Damyon Wiese
            Marina Glancy Marina Glancy
            Andrew Davis Andrew Davis
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

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