Uploaded image for project: 'Moodle app'
  1. Moodle app
  2. MOBILE-3780

Max size of attachment is not correctly detected (Forum and Assignment)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • 4.0.0
    • 3.9.5
    • Forum add-on
    • Hide

      This issue only needs to be tested in one device.

      1.  In web as admin/teacher, create a course with a certain "Maximum upload size" (e.g. 10MB).
      2. In this course, create 2 forums: 
        1. The first one (F1) with "Maximum attachment size" set to "Course upload limit".
        2. The second one (F2) with "Maximum attachment size" set to a lower size, e.g. 5MB.
      3. In another course with "Maximum upload size" set to "Site upload limit", create a forum (F3) with "Maximum attachment size" set to "Site upload limit".
      4. In the app, login as a student.
      5. Open forum F1 and click to add a new discussion. Check that in the attachments part the right size is displayed (it should match the course limit) and the app doesn't allow adding files bigger than that size.
      6. Now open forum F2 and click to add a new discussion. Check that in the attachments part the right size is displayed (it should match the custom size set) and the app doesn't allow adding files bigger than that size.
      7. Now open forum F3 and click to add a new discussion. Check that in the attachments part the right size is displayed (it should match the site upload limit) and the app doesn't allow adding files bigger than that size.
      8. Optional: you can repeat this test using other activities that allow attachments in the app: assign, database, glossary, quiz (essay), workshop. The code is the same for all activities so IMO this test is optional.
      Show
      This issue only needs to be tested in one device.  In web as admin/teacher, create a course with a certain "Maximum upload size" (e.g. 10MB). In this course, create 2 forums:  The first one (F1) with "Maximum attachment size" set to "Course upload limit". The second one (F2) with "Maximum attachment size" set to a lower size, e.g. 5MB. In another course with "Maximum upload size" set to "Site upload limit", create a forum (F3) with "Maximum attachment size" set to "Site upload limit". In the app, login as a student. Open forum F1 and click to add a new discussion. Check that in the attachments part the right size is displayed (it should match the course limit) and the app doesn't allow adding files bigger than that size. Now open forum F2 and click to add a new discussion. Check that in the attachments part the right size is displayed (it should match the custom size set) and the app doesn't allow adding files bigger than that size. Now open forum F3 and click to add a new discussion. Check that in the attachments part the right size is displayed (it should match the site upload limit) and the app doesn't allow adding files bigger than that size. Optional: you can repeat this test using other activities that allow attachments in the app: assign, database, glossary, quiz (essay), workshop. The code is the same for all activities so IMO this test is optional.
    • MOODLE_39_STABLE
    • MOODLE_400_STABLE
    • Moodle App 4.0

    Description

      The forum is configured to use the course max size (10MB), but the app is checking the user max size instead (256MB).

      Attachments

        Issue Links

          Activity

            People

              dpalou Dani Palou
              isabelrenedo Isabel Renedo Rouco
              Pau Ferrer Pau Ferrer
              Pau Ferrer Pau Ferrer
              Isabel Renedo Rouco Isabel Renedo Rouco
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Clockify

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