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

Database file upload fails when file limit is set to course upload limit

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.5
    • 2.5
    • None

    Description

      Found while testing MDLQA-5538

      When the File limit for picture and file fields are set to course upload limit, file uploads fail with the message: The file is larger than the space remaining in this area.

      Steps to reproduce:

      As a teacher:
      Create a database activity using the default settings.
      Add a file field named "file" be sure that the maximum size is set to course upload limit
      Add a picture field named "photo" be sure that the maximum size is set to course upload limit

      As a student:
      Navigate to the database activity and click "Add entry"
      Attempt to upload a file to the field named "file" be sure that the file is smaller than the course upload limit (For my testing I used a 5K file and the course limit was set to 2MB)
      save these changes

      Expected result: the file should upload successfully:
      Actual result: The following error is displayed: The file is larger than the space remaining in this area.

      Repeat the process with the field named Photo.

      Note this issue does not appear if the file limit is NOT set to "Course upload limit"

      Attachments

        Issue Links

          Activity

            People

              abgreeve Adrian Greeve
              sbourget Stephen Bourget
              Rajesh Taneja Rajesh Taneja
              Sam Hemelryk Sam Hemelryk
              Mark Nelson Mark Nelson
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                14/May/13