[wp-trac] [WordPress Trac] #16236: Method to stream file downloads in HTTP API, to reduce update memory footprint
WordPress Trac
wp-trac at lists.automattic.com
Sat Feb 12 01:01:07 UTC 2011
#16236: Method to stream file downloads in HTTP API, to reduce update memory
footprint
----------------------------+-----------------------------
Reporter: markjaquith | Owner:
Type: task (blessed) | Status: new
Priority: normal | Milestone: Future Release
Component: HTTP | Version:
Severity: normal | Resolution:
Keywords: 3.2-early |
----------------------------+-----------------------------
Comment (by dd32):
No problem :)
A few other thoughts:
- We should probably let the caller specify the destination folder AND
filename, save the class guessing where to put the file.
- The return could be modified to have headers, body(empty - for
backcompat purposes), and (optionally) a filename/path field for when it's
been saved
- The temp directory function could probably be moved to a non-admin spot
like that, it'll help plugins expecting to find it on cron tasks/etc.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/16236#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list