Re: New FileAPI Draft | was Re: FileAPI feedback

On Thu, 06 Aug 2009 10:53:31 +0200, Gregg Tavares <gman@google.com> wrote:
> On Thu, Aug 6, 2009 at 12:48 AM, Anne van Kesteren <annevk@opera.com>  
> wrote:
>> XHR does not do local data. It also does not do raw file data very well.
>
> I don't quite understand this comment. Isn't the point of these  
> discussions how to extend browsers and HTML? XHR was just extended to  
> support cross-site requests and new properties were added. Couldn't it  
> be extended again to
> support local files (through the "filedata:" url system) and as well to
> support raw data?

Sorry, it indeed could be extended in that way. I just think it is a bad  
idea. XMLHttpRequest provides an almost complete HTTP API and such a thing  
is completely different and way more complex than what is needed to read  
files from disk. In addition XMLHttpRequest is quite complex and  
overloading the whole object and all its members with this functionality  
is not worth saving a few members on the File/FileData objects.


-- 
Anne van Kesteren
http://annevankesteren.nl/

Received on Thursday, 6 August 2009 09:36:22 UTC