This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
Using xhr_object.send(new FormData(html_form_object)) allows to submit files using xhr instead of using hidden iframes. However, currently, that will send utf-8 encoded data instead of the html_form_object's encoding. This behavior makes hard to web pages to maintain compatibility with older browsers that require hidden iframes and use other encodings than utf-8. PHP, for instance, uses the iso-8859-1 encoding by default. Please see https://bugzilla.mozilla.org/show_bug.cgi?id=669239.
Unless you go binary XMLHttpRequest is always UTF-8. Given that everyone ought to use UTF-8 anyway I would like to keep it that way.