W3C home > Mailing lists > Public > public-webapps@w3.org > April to June 2012

Re: Working with FormData as an object

From: Anne van Kesteren <annevk@annevk.nl>
Date: Mon, 14 May 2012 14:37:14 +0200
Message-ID: <CADnb78jgtLZYKGanOpEqphCXfxVZAUJwBeHkW3hVG0n4iVbGXQ@mail.gmail.com>
To: WebApps WG <public-webapps@w3.org>
Cc: Arun Ranganathan <arun@mozilla.com>, Jonas Sicking <jonas@sicking.cc>
On Mon, May 14, 2012 at 2:00 PM, Anne van Kesteren <annevk@annevk.nl> wrote:
> http://wiki.whatwg.org/wiki/FormData has some ideas on how we could
> update FormData, XMLHttpRequest, and HTMLFormElement to address the
> various use cases presented thus far. Feedback welcome.

The one potentially problematic thing is exposing Blob passed to
FormData as File since they always have a filename. This might give
you distinct references to the underlying system file object. I'm not
sure if that is problematic. If it is problematic, I am not sure how
to keep the FormData API simple. I guess we should then introduce
FormEntry objects and change the API proposal to work with those.


-- 
Anne — Opera Software
http://annevankesteren.nl/
http://www.opera.com/
Received on Monday, 14 May 2012 12:37:46 GMT

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