- From: Domenic Denicola <notifications@github.com>
- Date: Sun, 26 Jun 2016 11:45:52 -0700
- To: whatwg/xhr <xhr@noreply.github.com>
- Cc:
Received on Sunday, 26 June 2016 18:46:25 UTC
https://xhr.spec.whatwg.org/#interface-formdata > The append\(name, value, filename\) method, when invoked, must run these steps: See discussion in https://github.com/tmpvar/jsdom/issues/1533 Given this code: ```js var formData = new FormData(); var file = new Blob([ JSON.stringify({}) ], { type: 'application/json' }); formData.append('somename', file); formData.entries().next().value ``` My reading is that per the spec this should append a new entry whose name is "somename" and whose value is a Blob to the form data. Then, entries().next().value should return the Blob right back. However, apparently in Chrome and Firefox it does not do that. Instead it converts it to a `File` (not a `Blob`) with, at least in Chrome, name "blob". --- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/whatwg/xhr/issues/73
Received on Sunday, 26 June 2016 18:46:25 UTC