This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| The concept still works. I slightly changed copying the file. | |
| (mp/wrap-multipart-params | |
| (POST "/fileupload" {:keys [params]} | |
| (let [{:keys [tempfile filename]} (get params "file")] | |
| (io/copy tempfile (java.io.File. (str root-directory "/" filename)))) | |
| (response "OK"))) |