MantisBT - ATutor
View Issue Details
0004568ATutorExport Contentpublic2010-10-05 08:012010-12-20 10:20
cindy 
cindy 
normalminoralways
closedfixed 
2.0.1 
2.0.1 
SVN
0004568: Cannot download big backup
It fails on big file because the download reads the whole file at a time which hits the php memory limitation. Reading the file in chunks would fix the problem.
No tags attached.
Issue History
2010-10-05 08:01cindyNew Issue
2010-10-05 08:01cindyAffects version => SVN
2010-10-05 08:05cindyStatusnew => resolved
2010-10-05 08:05cindyFixed in Version => 2.0.1
2010-10-05 08:05cindyResolutionopen => fixed
2010-10-05 08:05cindyAssigned To => cindy
2010-10-05 08:05cindyNote Added: 0004688
2010-12-20 10:20gregStatusresolved => closed

Notes
(0004688)
cindy   
2010-10-05 08:05   
SVN revision: 10290

Solution:
1. Added function readfile_in_chunks() into mods/_core/file_manager/filemanager.inc.php,
2. changed zip file download to use this function.

Affected scripts:
include/classes/zipfile.class.php
mods/_core/file_manager.inc.php
mods/_core/backups/classes/Backup.class.php