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

Re: [XHR2] Blobs, names and FormData

From: Michael Nordman <michaeln@google.com>
Date: Tue, 23 Aug 2011 12:22:55 -0700
Message-ID: <CAHpoE=h389n22hQX5W-qtJn0yBvCYi91+CGobsE0NaQPtu9U0A@mail.gmail.com>
To: Jonas Sicking <jonas@sicking.cc>
Cc: Anne van Kesteren <annevk@opera.com>, Charles Pritchard <chuck@jumis.com>, Adrian Bateman <adrianba@microsoft.com>, Julian Reschke <julian.reschke@gmx.de>, Alfonso Martínez de Lizarrondo <amla70@gmail.com>, Webapps WG <public-webapps@w3.org>
2011/8/23 Jonas Sicking <jonas@sicking.cc>

> On Tue, Aug 23, 2011 at 12:53 AM, Anne van Kesteren <annevk@opera.com>
> wrote:
> > On Tue, 23 Aug 2011 02:25:38 +0200, Jonas Sicking <jonas@sicking.cc>
> wrote:
> >>
> >> Given that this seems to be the way people prefer to do it, I'm fine
> >> with doing that for Gecko too. But we definitely would need to get
> >> FormData.append changed so that it supports the use case.
> >
> > So the current line for Blob can be replaced with
> >
> >  append(DOMString name, Blob value, optional DOMString filename);
> >
> > right?
>
> Yes. Where if the filename is excluded is left out it uses the
> File.name of the Blob (if the Blob is also a File), or "blob" (if the
> Blob is not a File).
>
> That leaves the question what to do if the filename is specified but
> is the empty string. I would argue that we should honor the call and
> use the empty string as name when submitting.
>
> / Jonas
>

SGTM
Received on Tuesday, 23 August 2011 19:23:24 GMT

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