Multipart form data is malformed if there are fields without names when submitted via FormData in an XHR

Fixed Issue #212443

Details

Created
May 14, 2014
Privacy
This issue is public.
Reports
Reported by 0 people

Sign in to watch or report this issue.

Steps to reproduce

URL:

Repro Steps:

  1. Navigate to http://jsfiddle.net/G2MRW/
  2. Open the F12 Developer Tools, click on the Network tab, and start recording.
  3. Click "Save (without append)"
  4. Look at the request that was generated. Note that it is malformed. It looks like this:
    -----------------------------7de3a62f101c0
    Content-Disposition: form-data; name="_method"

put
-----------------------------7de3a62f101c0

Note the missing – at the end.

NOTE: You can also click on "Save (with append)" to see that when you append anything to the FormData before calling send, the problem does not occur.

Expected Results:

The request should not include the data from fields without names.

Actual Results:

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Venkat K.”

      Changed Assigned To from “Venkat K.” to “Sekhar B.”

      Changed Status to “Confirmed”

      Changed Assigned To from “Sekhar B.” to “Matt K.”

      Changed Title from “Multipart form data is malformed if there are fields without names when submitted via FormData in an XHR” to “Multipart form data is malformed if there are fields without names when submitted via FormData in an XHR”

      Changed Assigned To from “Matt K.” to “Brandon M.”

      Changed Assigned To from “Brandon M.” to “IE F.”

      Changed Status from “Confirmed” to “Fixed”

    You need to sign in to your Microsoft account to add a comment.

    Sign in