>csrf token</a> and the <a href="https://stackoverflow.com/q/1342506/938236"><code>enctype=&quot;multipart/form-data&quot;</code></a>, both of them needed. Then to handle it with Node.js:</p>
<pre><code class="language-js">const mid = post(&#39;/profilepic&#39;, ctx =&gt; {
  // This comes from the &quot;name&quot; in the input field
  console.log(ctx.files.profilepic);
  return redirect(&#39;/profile&#39;);
});
</code></pre>
<h2 id="ip">.ip</h2>
<p>The IP of the client. If your server is running behind a p