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

Re: [XHR2] Blobs, names and FormData

From: Jonas Sicking <jonas@sicking.cc>
Date: Fri, 17 Jun 2011 09:24:45 -0700
Message-ID: <BANLkTin2ii9cgYe7JbHXgW3t6Rr1tYL76g@mail.gmail.com>
To: Anne van Kesteren <annevk@opera.com>
Cc: Webapps WG <public-webapps@w3.org>
On Friday, June 17, 2011, Anne van Kesteren <annevk@opera.com> wrote:
> On Wed, 20 Apr 2011 23:52:21 +0200, Jonas Sicking <jonas@sicking.cc> wrote:
> When a Blob is appended to a FormData, the XHR2 spec currently says
> that the filename used should be the empty string unless the Blob is
> also a File. If such a FormData is later submitted using
> XMLHttpRequest, this will result in a request that contains something
> similar to:
> Content-Disposition: form-data; name="myblob"; filename=""
> Unfortunately there appears to be some servers that are unable to deal
> with the filename parameter being empty. See details and examples in
> [1]. Chrome apparently already disregards the specification here and
> generates a seemingly random value for the filename parameter.
> Unless someone comes up with a reason otherwise, I suspect we need to
> change the spec here.
> [1] https://bugzilla.mozilla.org/show_bug.cgi?id=649150
> Just set it to "blob" maybe? Or "blob.bin" or some such?

That works for me. I'm curious to know why webkit went with a more
complex name though.

/ Jonas
Received on Friday, 17 June 2011 16:25:13 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:13:20 UTC