.target.files</code> is a list of <code>File</code> objects.</p>
<p>Next, you need to create a <a href=https://developer.mozilla.org/en/docs/Web/API/FormData><code>FormData</code></a> object to create a <a href=https://www.w3.org/Protocols/rfc1341/7_2_Multipart.html>multipart request</a>, which is a specially formatted HTTP request that is able to send file data in the request body.</p>
<pre><code class=language-javascript>function upload(e) {
    var file = e.target.files[0]

    var body = new FormData()
