- From: Olli Pettay <Olli.Pettay@helsinki.fi>
- Date: Tue, 30 Jun 2009 15:25:01 +0300
- To: WebApps WG <public-webapps@w3.org>
On 6/30/09 1:44 PM, Ian Hickson wrote: > On Tue, 30 Jun 2009, Olli Pettay wrote: >> >> File API should probably have some way to get only parts of the file. >> getAsXXX(long long offset, long long length). Then uploading huge files >> could be split and decoding video (or something like that) in JS might become >> possible. >> This is something we need for XHR too >> https://bugzilla.mozilla.org/show_bug.cgi?id=496533 > > I'd rather just have an API that lets you split a File into a > sequence<FileData> (where FileData is what File inherits from) of equally > sized chunks, or something like that, than something that lets you get > chunks out in particular forms. > Yeah, that sounds better. Then XHR .send() could accept FileData as a parameter. All the .getAsXXX methods would move to that interface and there should be something like FileData getFileData(long long offset, long long length) -Olli
Received on Tuesday, 30 June 2009 12:25:38 UTC