Flow has a great HTTP API already but does not yet support HTTP_RANGE which is often/always used on mobile devices. It would be great to serve huge download files with HTTP_RANGE.
"Appendix A: Streaming for Apple iPhone" but note that there are some little errors in that snippet.
Updated by Jacob Floyd over 8 years ago
Whoever codes this, please reference the relevant RFC 2616 sections.
- Accept-Ranges (14.5)
Partial Content Response Misc info:¶
MediaType multipart/byteranges (19.2) The implementation of this in the referenced appendix on mobiforge only implements single ranges, not multi-ranges
only "needed" response headers need to be sent for ranges (19.6.3 Changes from RFC 2068)
Updated by Alexander Berl over 8 years ago
I just recently fiddled with Range requests and one additional idea that comes into mind with that is, that controllers should be able to return Resource objects, which will then be streamed to the user. That way even large files could be secured through the framework, but be delivered with less memory footprint than simply returning a file_get_contents() by submitting the data in parts.
Only thing that might become tricky to do properly would be multipart byteranges, but not sure when/where those are actually used.
Updated by Simon Schaufelberger over 8 years ago
found another good example here: http://www.richnetapps.com/php-download-script-with-resume-option/