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

    Details

    • Testing Instructions:
      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
    • Affected Branches:
      MOODLE_33_STABLE, MOODLE_37_STABLE
    • Fixed Branches:
      MOODLE_35_STABLE, MOODLE_36_STABLE
    • Pull from Repository:
    • Pull 3.5 Branch:
    • Pull Master Branch:
      MDL-59954-master

      Description

      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"

        Attachments

          Activity

            People

            Assignee:
            peterdias Peter Dias
            Reporter:
            technikum-wien Stefan Weber
            Peer reviewer:
            Mihail Geshoski
            Integrator:
            Adrian Greeve
            Tester:
            Anna Carissa Sadia
            Participants:
            Component watchers:
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Matteo Scaramuccia, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
            Votes:
            5 Vote for this issue
            Watchers:
            9 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              14/Jan/19

                Time Tracking

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