This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-02-03
Channels
- # announcements (1)
- # babashka (31)
- # babashka-sci-dev (53)
- # beginners (33)
- # calva (54)
- # cider (15)
- # clj-kondo (9)
- # clojure (115)
- # clojure-dev (19)
- # clojure-europe (21)
- # clojure-nl (1)
- # clojure-norway (78)
- # clojurescript (10)
- # clr (9)
- # community-development (9)
- # core-async (24)
- # cursive (18)
- # datomic (59)
- # emacs (43)
- # figwheel-main (2)
- # fulcro (4)
- # graphql (4)
- # malli (7)
- # meander (12)
- # nbb (14)
- # off-topic (22)
- # polylith (9)
- # re-frame (5)
- # reitit (3)
- # releases (1)
- # shadow-cljs (36)
- # sql (1)
- # tools-build (23)
- # xtdb (13)
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?
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?
Also asked on Clojureverse, https://clojureverse.org/t/submit-clojure-data-to-reitit-multipart-api/9764