[whatwg] Asynchronous file upload

On Tue, 09 Jun 2009 20:37:04 +0200, Michael Nordman <michaeln at google.com> wrote:
> Does the planned API allow for the composition of multipart encoded posts
> including binary file parts? So not just sending the binary file data in
> isolation.
> Such that the caller can use some File API to obtain references to files,
> and then stitch together a "blob" of data to upload, including the file
> data, that looks just like what would be sent via a Form post, and then  
> to
> have XHR2 send it.
> Fyi, the latest release of Gears lets you do that with the combination of
> Desktop.openFiles(), BlobBuilder, and HttpRequest.send(blob)... of course
> non-standard.

The discussion for these features should really happen on public-webapps at w3.org. Having said that, the file API is still in the works. For XMLHttpRequest all I expect to change is adding new objects that can be passed to the send() method as argument and define how they are to be serialized and maybe how they affect the Content-Type header.

Anne van Kesteren

Received on Tuesday, 9 June 2009 11:57:26 UTC