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

Large files fail to download using readfile() function

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 2.1.7
    • Files API
    • MOODLE_21_STABLE
    • Hide

      1/ Create a backup file or upload a file larger than 3GB (for example).
      2/ Attempt to download the file.
      3/ Page will refuse to load, and no file will download.

      Show
      1/ Create a backup file or upload a file larger than 3GB (for example). 2/ Attempt to download the file. 3/ Page will refuse to load, and no file will download.

      There is an issue in Moodle where an unknown error occurs when trying to download a large file. The function is currently using the 'readfile()' function, in which is believed to be failing when trying to map memory in the PHP engine (possibility due to a PHP bug).

      An alternative to this is to implement the use of a different streaming function which appears to successfully stream the file to the client without any problems.

            moodle.com Moodle HQ
            jaseeey Jason Ilicic (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

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