W3C home > Mailing lists > Public > public-webapps@w3.org > April to June 2009

Re: File API Feedback

From: Olli Pettay <Olli.Pettay@helsinki.fi>
Date: Tue, 30 Jun 2009 15:25:01 +0300
Message-ID: <4A4A041D.5030102@helsinki.fi>
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 
All the .getAsXXX methods would move to that interface and there should 
be something like
FileData getFileData(long long offset, long long length)

Received on Tuesday, 30 June 2009 12:25:38 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:12:54 UTC