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

Qtype_essay file-size limit: it says "0 bytes" for students when "Site upload limit" is set

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. Create a course.
      2. Create a quiz in the course.
      3. Add an essay question to the quiz with the following settings:
        1. Response Options > Allow attachments: Unlimited.
        2. Response Options > Maximum file size: Site upload limit.
      4. Enrol a student in the course.
      5. Login as the student and attempt the quiz.
      6. In the essay file picker, check that it says "Maximum size for new files: XMB", where "XMB" is the max size that the site allows. E.g. 256MB. It should not say 0 bytes.
      Show
      Create a course. Create a quiz in the course. Add an essay question to the quiz with the following settings: Response Options > Allow attachments: Unlimited. Response Options > Maximum file size: Site upload limit. Enrol a student in the course. Login as the student and attempt the quiz. In the essay file picker, check that it says "Maximum size for new files: XMB", where "XMB" is the max size that the site allows. E.g. 256MB. It should not say 0 bytes.
    • Affected Branches:
      MOODLE_310_STABLE
    • Fixed Branches:
      MOODLE_310_STABLE
    • Pull from Repository:
    • Pull 3.10 Branch:
      MDL-70153-310
    • Pull 3.11 Branch:
      MDL-70153-311
    • Pull Master Branch:
      MDL-70153-master

      Description

      How to reproduce:

      1. Create a course.
      2. Create a quiz in the course.
      3. Add an essay question to the quiz. Make sure to allow attachments and set "Maximum file size" to "Site upload limit".
      4. Enrol a student in the course.
      5. Login as the student and attempt the quiz.
      6. In the essay file picker it says: Maximum file size: 0 bytes.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dpalou Dani Palou
              Reporter:
              dpalou Dani Palou
              Peer reviewer:
              Tim Hunt
              Integrator:
              Andrew Nicols
              Tester:
              Anna Carissa Sadia
              Participants:
              Component watchers:
              Tim Hunt, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                18/Jan/21

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 3 hours, 5 minutes
                  3h 5m