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

    • 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

    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

            peterdias Peter Dias
            technikum-wien Stefan Weber
            Mihail Geshoski Mihail Geshoski
            Adrian Greeve Adrian Greeve
            Anna Carissa Sadia Anna Carissa Sadia
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Laurent David, Raquel Ortega, Sara Arjona (@sarjona), Matteo Scaramuccia, Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Stevani Andolo, Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Sujith Haridasan
            Votes:
            5 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              14/Jan/19

              Time Tracking

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