clojure - ClojureScript multipart post through cljs-http? -
i'm trying post files server through clojurescript. according https://github.com/r0man/cljs-http, need changing form-params multipart-params, once params getting ignored.
(print data-array) (go (let [{data :body} (<! (http/post "/submit.json" {:multipart-params {:foo "bar"}}))])) the print gives
{:image0 #<[object file]>, :image1 #<[object file]>} (my goal post array of files url. changed :foo "bar" debug purpose). if change :multipart-params :form-params, params in request. if change :multipart-params, getting ignored.
i'm confused in why happening. have hint go here?
i still not sure problem was, after upgrading libraries latest stable seems gone.
Comments
Post a Comment