Yeah - you can't do file submit via ajax. The browsers don't support it. James
On Thu, Jan 28, 2010 at 2:17 AM, Marius <marius.dan...@gmail.com> wrote: > 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 <min...@gmail.com> 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 lift...@googlegroups.com. > To unsubscribe from this group, send email to > liftweb+unsubscr...@googlegroups.com<liftweb%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/liftweb?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.