W3C home > Mailing lists > Public > public-webapps@w3.org > October to December 2009

re: Proposal for sending multiple files via XMLHttpRequest.send()

From: Darin Fisher <darin@chromium.org>
Date: Mon, 19 Oct 2009 23:55:21 -0700
Message-ID: <bd8f24d20910192355p4fe48531n965c0198039afa5d@mail.gmail.com>
To: public-webapps@w3.org
I'd like to revive the "Proposal for sending multiple files via
XMLHttpRequest.send()" thread
started by Jian Li back in September.

As pointed out on that thread, sending a JS array of strings and File
references isn't going
to fly due to an array of strings already having meaning.

That thread concluded with Jonas Sicking saying:

> I definitely think that we need to add some way of sending a stream
> that is a concatenation of strings, binary data, and files, without
> requiring the files to be read.

What should this look like?  Should there be a new global constructor for an
object that supports methods like appendText and appendFile?  Like this:

var data = new UploadData;

I like the idea of creating a primitive that does not enforce any encoding.

Received on Tuesday, 20 October 2009 06:55:53 UTC

This archive was generated by hypermail 2.3.1 : Friday, 27 October 2017 07:26:20 UTC