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

Using Drag & Drop to upload files in a course does not ignore size limit for teachers

XMLWordPrintable

    • MOODLE_33_STABLE, MOODLE_37_STABLE
    • MOODLE_35_STABLE, MOODLE_36_STABLE
    • MDL-59954-master
    • Hide

      Prerequisites:

      1. Confirm moodle/course:ignorefilesizelimits is enabled for the teacher

      Testing Instructions:

      1. Login as a teacher
      2. Goto a course and edit the settings
      3. Set Maximum limit to 10kb
      4. Navigate back to the course page
      5. Turn editing on
      6. Drag and drop a file > 10kb onto the page
      7. Select either of the options and upload
      8. Confirm no file size restriction error message pops up and file appears on course page
      Show
      Prerequisites: Confirm moodle/course:ignorefilesizelimits is enabled for the teacher Testing Instructions: Login as a teacher Goto a course and edit the settings Set Maximum limit to 10kb Navigate back to the course page Turn editing on Drag and drop a file > 10kb onto the page Select either of the options and upload Confirm no file size restriction error message pops up and file appears on course page

      The upload limit for files set in course settings normally does not apply to teachers of that course.

      Reproduce:

      1) Go to a course in which you at least have teacher role
      2) Go to course settings and set the maximum upload size to a limit.
      3) Add a new file resource, the upload file dialog still shows you that file size is unlimited, since you are a teacher
      4) Go back to the course, turn on edit mode, and try to directly add a file via drag & drop on the course -> you will get an error: "The file is too large and cannot be uploaded"

        1. MDL-59954.PNG
          151 kB
          Anna Carissa Sadia

            peterdias Peter Dias
            technikum-wien Stefan Weber
            Mihail Geshoski Mihail Geshoski
            Adrian Greeve Adrian Greeve
            Anna Carissa Sadia Anna Carissa Sadia
            Votes:
            5 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 20 minutes
                20m

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