[XHR2] FormData.append() does not handle "file name" (3rd argument)?

RESOLVED INVALID

Status

()

RESOLVED INVALID
5 years ago
5 years ago

People

(Reporter: hsteen, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(URL)

(Reporter)

Description

5 years ago
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
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
Last Resolved: 5 years ago
Flags: needinfo?(hsteen)
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.