6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
11/8/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#5913] Lower memory usage while downloading files
*
Your Email Address
*
Spam protection
Enter the letters below:
. .. ,. . .._. | | \./ | | | | |/\| | |/\|\__|_|_
Comment
> OK, fixed it myself. Figured out how to use objects (again, used to > program in Turbo Pascal with objects loooong time ago...), and > resolved my issue with the hardcoded pathname. > > Also fixed my memory issue while I was at it. PHP memory_limit now > set to 16MB, and downloading 368MB file. Sweet. > > > > Still in the same file (gollem/view.php). This is what I done: > > /* $data = $GLOBALS['gollem_vfs']->read($filedir, $filename); > > if (is_a($data, 'PEAR_Error')) { > > $notification->push(sprintf(_("Access denied to %s"), $filename), > 'horde.error'); > > header('Location: ' . > Util::addParameter(Horde::applicationUrl('manager.php', true), > 'actionID', $actionID)); > > exit; > > }*/ > > Commented this part out completely as it read the file into memory, > stuffing it up. > > > > /* Run through action handlers. */ > > switch ($actionID) { > > case 'download_file': > > $File_Dir = $GLOBALS['gollem_vfs']->_getNativePath($filedir, $filename); > > $File_Size = FileSize($File_Dir); > > $browser->downloadHeaders($filename, null, false, $File_Size); > > ReadFileChunked($File_Dir); > > /* echo $data; */ > > break; > > > > Let me know what you think! > > > > Cheers! Olger.
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers