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

Folder resouce displays - 1 bytes for the admin user

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 2.3
    • Fix Version/s: None
    • Component/s: Filepicker
    • Labels:
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_23_STABLE

      Description

      A folder resource displays the following: "Maximum size for new files: -1 bytes - drag and drop available" above the File manager form element.

      Apparently the -1 is displayed when there is no limit to the file size.

      To recreate:

      1. Login as admin and create a folder resource.
      2. Navigate to the folder resource and click edit to launch the file manager form element.

      Expected result:
      The label that informs the user of the file size limit contains an accurate value for maximum file size.

      Actual result:
      The label displays -1 bytes as the maximum value for a file upload, which is incorrect.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              andyjdavis Andrew Davis
              Reporter:
              timb Tim Barker
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: