要将文件上传到我在 Clojure 中编写的服务器,我需要一个看起来像这样的客户端表单:
<form action="/file" method="post" enctype="multipart/form-data">
<input name="file" type="file" size="20" />
<input type="submit" name="submit" value="submit" />
但是我找不到 Hiccup 或 Compojure 的文档来创建这样的表单。我的样本如下所示:
[: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]
所以我的问题是文档在哪里可以找到如何修改它以制作一个可以上传文件的表单?