HTML - multipart/form-data encoding / mime


multipart/form-data is a mime part used in the enctype form attribute to encode the keyword and corresponding state of input field before sending into the body of the HTTP request

A formdata when send via XHR is encoded in this format


Content-Disposition: form-data; name="t"

Content-Disposition: form-data; name="q"


This encoding could have been created with this form where cats and fur are the data entered in the input field t and q

<form action="/find.cgi" method=post enctype="multipart/form-data">
 <input type=text name=t>
 <input type=search name=q>
 <input type=submit>

Documentation / Reference

Powered by ComboStrap