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

Re: [XHR2] Blobs, names and FormData

From: Anne van Kesteren <annevk@opera.com>
Date: Fri, 17 Jun 2011 15:00:06 +0200
To: "Webapps WG" <public-webapps@w3.org>, "Jonas Sicking" <jonas@sicking.cc>
Message-ID: <op.vw702gsr64w2qv@anne-van-kesterens-macbook-pro.local>
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?

Anne van Kesteren
Received on Friday, 17 June 2011 13:00:40 UTC

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