W3C home > Mailing lists > Public > public-webapi@w3.org > June 2006

XHR suggestion: multipart/form-data formatting methods?

From: Alex Vincent <ajvincent@gmail.com>
Date: Mon, 19 Jun 2006 11:56:22 -0700
Message-ID: <9301ed6b0606191156l3a0dd319he4e4d33f368f0cb6@mail.gmail.com>
To: public-webapi@w3.org

Currently, the XHR specification doesn't include the possibility of
multipart/form-data methods - which can be useful for POST requests.
Typically, the body of a HTTP request contains the data fields - but a
largish field value could be problematic.

Maybe a few additional methods might be handy.  Like a
setBodyValue(name, value) method - or for file uploads,
setBodyFile(name, contents, fileName).  Once these becomes used for a
particular request, then, the send() method call must be with a null

I'm not going to force this down anyone's throat, though.  It's just a

"The first step in confirming there is a bug in someone else's work is
confirming there are no bugs in your own."
-- Alexander J. Vincent, June 30, 2001
Received on Monday, 19 June 2006 18:56:32 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:16:21 UTC