On Saturday, February 14, 2015 at 3:26:53 PM UTC+1, Michiel Borkent wrote: > I am currently looking at the options for supporting file uploads in several > browsers in a ClojureScript SPA. > > My first attempt was posting a form with a file upload with cljs-http. This > didn't work because the Ring/compojure app started to complain about the > content boundary not being in order. Also just using cljs-http will not work > for IE9 of course. > > Next, I gave goog.net.iframeIO a try. This will work for the spectrum of > browsers we have to support, but working with iframes for modern browsers > doesn't feel right. > > Then I tried jquery-file-upload. Still playing around with it, but I'm pretty > sure this will give me what I need, as it has a fallback mechanism for older > browser via iframe transport. > > I wonder what other options I have and what is convenient in combination with > React and ClojureScript. > > Feel free to post some examples to your open source projects or give any > other helpful tips. > > Thanks, > > Michiel Borkent
Why do you need a plugin at all ? A basic form with the input type=file should work fine. <form method="post" enctype="multipart/form-data"> <input type="file" name="[some name]" /> <input type="submit" value="Upload" /> </form> Supported since IE 3.0 I think... -- 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.
