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

[XHR2] Blobs, names and FormData

From: Jonas Sicking <jonas@sicking.cc>
Date: Wed, 20 Apr 2011 14:52:21 -0700
Message-ID: <BANLkTikRzpZ1UE2q71Z296=tLiApevpbeA@mail.gmail.com>
To: Webapps WG <public-webapps@w3.org>
Hi All,

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

/ Jonas
Received on Wednesday, 20 April 2011 21:53:18 GMT

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