This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-03-04
Channels
- # admin-announcements (3)
- # alda (4)
- # beginners (30)
- # boot (116)
- # cbus (5)
- # cider (20)
- # clara (10)
- # cljs-dev (12)
- # cljsjs (41)
- # cljsrn (9)
- # clojars (6)
- # clojure (131)
- # clojure-bangladesh (5)
- # clojure-colombia (2)
- # clojure-dev (9)
- # clojure-ireland (4)
- # clojure-japan (3)
- # clojure-norway (10)
- # clojure-poland (6)
- # clojure-russia (59)
- # clojure-sg (1)
- # clojurebridge (2)
- # clojurescript (76)
- # clojurewerkz (4)
- # css (6)
- # cursive (21)
- # data-science (24)
- # datomic (27)
- # emacs (9)
- # hoplon (68)
- # jobs (2)
- # jobs-rus (1)
- # ldnclj (10)
- # lein-figwheel (9)
- # leiningen (21)
- # off-topic (5)
- # om (232)
- # onyx (63)
- # parinfer (2)
- # proton (25)
- # re-frame (12)
- # reagent (39)
- # untangled (6)
- # yada (122)
@rickmoynihan: I recently found this http://milinda.svbtle.com/handling-file-uploads-in-clojure-web-apps
@bahulneel: yeah that describes using the multi-part middleware - which is what we're using already... problem is I don't want to wrap the file in a form body - as its used by an API only... so I need another middleware to stream certain request bodies (depending on content type) into a temp file - and replace the body with the tempfile (like that middleware does).
@rickmoynihan: I see, something like https://gist.github.com/bahulneel/87ed9a13eeada08e93e7 would probably work
@bahulneel: yeah exactly - as you've demonstrated - it's easy enough to do - I was just wondering if there was an existing middleware for this...
thanks though... I might take what you've done and deploy a middleware for this usecase if there isn't an existing one already.
was thinking it might want to reuse bits from the multi-part middleware too though - e.g. the file store idea it has etc...
@rickmoynihan: That would make sense
also should probably take a set of content-types where it kicks in
I might take a look at this next week sometime