Closed
Bug 918720
Opened 11 years ago
Closed 11 years ago
[XHR2] FormData.append() does not handle "file name" (3rd argument)?
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: hsteen, Unassigned)
References
()
Details
There is an unexpected failure while this test case is being set up, I believe it throws because of a 3rd argument to FormData.append() ? Test cases: http://w3c-test.org/web-platform-tests/master/XMLHttpRequest/formdata.htm
Reporter | ||
Updated•11 years ago
|
Comment 1•11 years ago
|
||
If you pass a third argument, the middle argument needs to be a Blob, not a string. The test does function create_formdata () { var fd = new FormData(); for (var i = 0; i < arguments.length; i++) { fd.append.apply(fd, arguments[i]); }; return fd; } ... create_formdata(['key', 'value', 'kv.txt']) Can you update the test? (And do add a test that this case fails.)
Status: NEW → RESOLVED
Closed: 11 years ago
Flags: needinfo?(hsteen)
Resolution: --- → INVALID
Reporter | ||
Comment 2•11 years ago
|
||
Done: https://github.com/w3c/web-platform-tests/commit/a9191e8c56a7305c334f68ee1c8d955897e75bdd
Flags: needinfo?(hsteen)
You need to log in
before you can comment on or make changes to this bug.
Description
•