This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-08-07
Channels
- # announcements (10)
- # babashka (39)
- # beginners (230)
- # calva (16)
- # cider (20)
- # clara (4)
- # cljs-dev (16)
- # clojure (35)
- # clojure-europe (8)
- # clojure-filipino (5)
- # clojure-france (1)
- # clojure-nl (6)
- # clojure-uk (9)
- # clojuredesign-podcast (1)
- # clojurescript (55)
- # clojurewerkz (1)
- # core-async (13)
- # cursive (1)
- # data-science (1)
- # datomic (4)
- # events (1)
- # fulcro (26)
- # jobs-discuss (1)
- # kaocha (3)
- # malli (53)
- # observability (9)
- # off-topic (1)
- # project-updates (1)
- # re-frame (15)
- # reagent (1)
- # reitit (11)
- # rum (8)
- # sci (29)
- # shadow-cljs (7)
- # vim (12)
- # xtdb (13)
Hi, in the context of reitit-ring — is it possible to get raw body after coercion happen? Right now I’m getting empty InputStream. Looks like it was read by coercer and left empty (
Morning is there anyway to use ring/create-file-handler
to list a directory contents? these directories are dynamically created to don't know a priori. thanks
@delaguardo InputStreams can only read once. In default stack, Muuntaja reads it. The current coercion impls don't publish it, except malli, but only for errors. Here's the code: https://github.com/metosin/reitit/blob/master/modules/reitit-malli/src/reitit/coercion/malli.cljc#L65
It could be helpful in many scenarios. My, for instance, is to coerce body and then check the signature of original message
But I need to have original data intact to reconstruct it's signature
@gary001 nothing in reitit, but if there is any ring-compatible lib doing that, you can use it.
Looking at this: https://www.metosin.fi/blog/reitit020/ uploading makes sense when you have {:parameters {:file multipart/temp-file-part}} but what happens when you have additional form fields being submitted? If I try this I get coercion exceptions. Additionally my formdata library is adding an index to the file. Instead of file
is it submitting as file[0]
but that should not matter right?