title: Using Compojure, Hiccup and Ring to upload a file
body: <p>To upload a file to a server I'm writing in Clojure I need a client form that looks something like this:</p>
  
  <pre><code>&lt;form action="/file" method="post" enctype="multipart/form-data"&gt;
  &lt;input name="file" type="file" size="20" /&gt;
  &lt;input type="submit" name="submit" value="submit" /&gt;
  </code></pre>
  
  <p>However I can't find the documentation for Hiccup or in Compojure to create a form like this. The sample I have looks like this :</p>
  
  <pre><code>[:h2 "Choose a file to upload"]
  :form {:method "post" :action "/upload"}
  [:input.math {:type "text" :name "a"}] [:span.math " + "]
  [:input.math {:type "text" :name "b"}] [:br]
  </code></pre>
  
  <p>So my question is where is the documentation to find how this should be modified to make a form that will upload a file?</p>