Hi, i'm wondering about uploading files via html form and /post...
I'm not really sure how it's supposed to work. does an upload action put a file at a :tempfile "/path/" that I can then reference with java.io.copy to store locally?
We use sth. like this:
(mp/wrap-multipart-params
(POST "/teams/import" {{{tempfile :tempfile filename :filename} :importteamsfile} :params :as params}
(friend/authorize #{roles/project-configuration} (import-developer-teams project-id tempfile filename))))
mp
is ring.middleware.multipart-params
i keep getting null pointer exceptions it's difficult to debug.
is there a reason {:enctype "multipart/formdata"}
doesn't want to play nicely?