Fork me on GitHub
#reitit
<
2023-02-03
>
vlad_poh14:02:02

I am trying to serve static files with Jetty and I’m using the create-file-handler function and all I get is a null pointer exception with the first trace pointing to File.java 318. My question is how do I tell what path(s) the handler is using?

DrLjótsson20:02:26

Is it possible to send a file together with clojure data using standard reitit tooling? I've successfully followed the example at https://github.com/metosin/reitit/blob/master/examples/ring-swagger/src/example/server.clj, i.e., :parameters {:multipart {:file ...}} But that expects the :body of the request to be a js object with a file key. How do I add additional clojure data as parameters to that object?