I have a file input setup similar to this
[:p "Upload a book"] (form-to [:post "/upload"] (file-upload :book) (submit-button "Upload"))
Then my download endpoint is as follows.
(defpage [:post "/upload"] {:keys [book]} (println book))
Book
It seems like just the title bar of the downloaded file, not the file itself. How to get a file?
source share