Downloading files requires too much memory
stefan_seefeld - June 19, 2009 - 18:37
| Project: | Filebrowser |
| Version: | 6.x-2.0-rc10 |
| Component: | Directory Listing Pages |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
Trying to download a big file fails for me as php is unable to allocate the requested memory. It appears the FileBrowser module wants to load the entire file into memory before sending it to the client. Is there any reason why it can't stream the file instead ? That would solve this issue, and also be much more efficient (most http servers support a 'sendfile()' call that entirely bypasses user-space code by asking the kernel to stream directly from storage to the http connection...)
Thanks,
Stefan

#1
this is now fixed in dev release.
#2
Automatically closed -- issue fixed for 2 weeks with no activity.