mirrored from git://git.moodle.org/moodle.git
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDL-38194 Files: Allow download of large backup files
The PHP readfile function does not work for files more than 2GB. This commit provides a wrapper that can be used so that files less than 2GB are sent with readfile, and files larger than 2GB are sent manually. The change applies to all uses of pluginfile.php, although in reality, backup files are probably the only ones likely to be more than two gigabytes.
- Loading branch information
1 parent
e81fce9
commit da7c844
Showing
2 changed files
with
39 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters