I don't think it's possible to do files upload via Ajax. There are workarounds but not directly with Ajax. If it would be possible Lift would have expose it already. Please look into widgets project on the upload widget. It does a fiel upload ajax-like including progress bar.
Br's, Marius On Jan 28, 8:05 am, wm <[email protected]> wrote: > Hi, > > I want to upload files in AJAX, is there a way to set the > multipart="true"? > > I checked the html code generated by the ajaxForm: > > <form id="F347910659087FDI" > action="javascript://" > onsubmit="liftAjax.lift_ajaxHandler(jQuery > ('#'+"F347910659087FDI").serialize(), null, null, > "javascript");return false;"> > <input type="file" name="F347910659080N24" /> > ... > > There is no such option. > > Then I checked in: > framework/lift-base/lift-webkit/src/main/scala/net/liftweb/http/ > SHtml.scala > > it seems none of the > def ajaxForm(...) > takes such parameter? > > Is what I'm looking for possible at all? thanks. -- You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
