- From: Jonas Sicking <jonas@sicking.cc>
- Date: Wed, 20 Apr 2011 14:52:21 -0700
- 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 UTC