W3C home > Mailing lists > Public > public-webapps@w3.org > July to September 2008

Re: Proposal for an extension XMLHttpRequest to allow sending files

From: Jonas Sicking <jonas@sicking.cc>
Date: Thu, 17 Jul 2008 15:54:34 -0700
Message-ID: <487FCDAA.7090407@sicking.cc>
To: Maciej Stachowiak <mjs@apple.com>
CC: Aaron Boodman <aa@google.com>, Sam Weinig <weinig@apple.com>, Web Applications Working Group WG <public-webapps@w3.org>

Maciej Stachowiak wrote:
> On Jul 17, 2008, at 1:23 PM, Aaron Boodman wrote:
> 
>>
>> Is the only difference from the Gears proposal the name of the object
>> ("File") and the lack of reading APIs initially?
> 
> The Gears proposal has a File object too, as does Mozilla's extension. 
> We are proposing making the File object usable directly as an XHR body, 
> so that we can all support file upload through XHR interoperably without 
> first having to agree on the mechanisms for reading file contents and 
> representing binary data (which are different between Gears and Mozilla).
> 
> File upload through XHR is useful even without a means to read the data 
> client-side, because combined with progress events it can provide 
> in-page progress UI with info for multiple files, which is quite a bit 
> better than what you get with form submission. Currently some web apps 
> use Flash for uploads solely to enable progress UI.
> 
> As Sam mentioned, overloading send() to take a File does not preclude 
> later overloading it to take a Blob or ByteArray or any other kind of 
> object representing raw data.

This sounds like a great idea to me.

/ Jonas
Received on Thursday, 17 July 2008 22:56:04 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:27 GMT