HI, I am new to ClojureScript/OM. I am trying implement a simples upload. So I
have something like this
(defn handle-change [e owner {:keys [text]}]
(js/alert (.. e -target -value)))
(defn upload-view [data owner]
(reify
om/IRenderState
(render-state [this state]
(dom/div nil
(dom/h2 nil "Uplaod a Photo")
(dom/input #js {:type "file" :className "file-field"
:onChange #(handle-change % owner state)})))))
When a choose a file from my computer, the alert show me c:\fakepath/image.png,
for example. Something wrong with code or is some secutiry option on the
browser...
Thanks in advance
--
Note that posts from new members are moderated - please be patient with your
first post.
---
You received this message because you are subscribed to the Google Groups
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/clojurescript.