This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-11-16
Channels
- # announcements (7)
- # babashka (8)
- # beginners (48)
- # calva (4)
- # cider (6)
- # circleci (2)
- # clj-commons (14)
- # clj-kondo (3)
- # clj-on-windows (7)
- # cljs-dev (34)
- # clojure (49)
- # clojure-dev (25)
- # clojure-europe (48)
- # clojure-losangeles (1)
- # clojure-nl (4)
- # clojure-norway (33)
- # clojure-uk (2)
- # clojurescript (37)
- # community-development (5)
- # conjure (17)
- # cursive (2)
- # data-science (1)
- # editors (10)
- # emacs (50)
- # events (22)
- # honeysql (11)
- # introduce-yourself (1)
- # jobs-discuss (13)
- # lsp (42)
- # malli (9)
- # off-topic (7)
- # pathom (11)
- # portal (5)
- # re-frame (3)
- # reagent (22)
- # reitit (8)
- # reveal (1)
- # rewrite-clj (4)
- # shadow-cljs (38)
- # xtdb (21)
My upload file route setup is like this:
["/upload" {:post {:parameters {:multipart {:file multipart/temp-file-part}}
:handler (fn [request]
(clojure.pprint/pprint request)
(#'upload request))}}]
I'm trying to upload file through swagger and getting the following message:
{
"spec": "(spec-tools.core/spec {:spec (clojure.spec.alpha/keys :req-un [:spec$20864/file]), :type :map, :leaf? false})",
"problems": [
{
"path": [],
"pred": "(clojure.core/fn [%] (clojure.core/contains? % :file))",
"val": {},
"via": [],
"in": []
}
],
"type": "reitit.coercion/request-coercion",
"coercion": "spec",
"value": {},
"in": [
"request",
"multipart-params"
]
}
[SOLVED] Can someone help? Been stuck for couple of days. Couldn't find any related answers. 😭
you can add debug Middleware to see step by step how you request changes between Middlewares