This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-03-08
Channels
- # announcements (6)
- # beginners (100)
- # calva (17)
- # cljs-dev (31)
- # cljsrn (2)
- # clojars (3)
- # clojure (137)
- # clojure-australia (1)
- # clojure-europe (41)
- # clojure-gamedev (3)
- # clojure-italy (1)
- # clojure-nl (3)
- # clojure-poland (16)
- # clojure-serbia (7)
- # clojure-taiwan (1)
- # clojure-uk (10)
- # clojurescript (10)
- # cursive (25)
- # data-oriented-programming (4)
- # datomic (26)
- # fulcro (39)
- # graalvm (6)
- # jobs (2)
- # jobs-discuss (2)
- # kaocha (19)
- # klipse (1)
- # leiningen (3)
- # lsp (18)
- # malli (21)
- # meander (26)
- # off-topic (29)
- # pathom (39)
- # polylith (3)
- # practicalli (2)
- # re-frame (11)
- # reitit (8)
- # rewrite-clj (7)
- # sci (11)
- # shadow-cljs (44)
- # sql (8)
- # tools-deps (32)
- # xtdb (3)
@joshmiller I got it working. Thanks
I have a reframe handler like so:
(reg-event-fx
:upload-video
(fn [{:keys [db] :as cofx} [_ navigation]]
{:video->body [(:video-body db) (:video db)]
:thumbnail->body [(:video-body db) (:thumbnail db)]
:title->body [(:video-body db) (:title db)]
:address->body [(:video-body db) (:address db)]
:date->body [(:video-body db) (:date db)]
:db (assoc db :uploading-progress true
:upload-error false)
:http-xhrio {:method :post
:progress-handler #(dispatch [:upload-progress %])
:uri (str server-uri "/api/upload-video")
:body (:video-body db)
:on-success [:upload-success navigation]
:on-failure [:upload-error navigation]
:format (json-request-format)
:response-format (raw-response-format)}
}))
but I inexplicably started getting the following error upon dispatching this event: