The typical non-Flash way is to do the file upload in an iframe. The iframe doesn't have to contain more than a simple form with a single file field. There's some trickery involved getting the UI to work seamlessly and synchronizing the backend, especially if you need it to look like it operates together with some other forms and form fields, but I'm sure you are more than capable to handle it :) I recall building an iframe-based upload component for Tapestry 4 at some point.
Kalle On Thu, Mar 18, 2010 at 4:38 PM, Howard Lewis Ship <hls...@gmail.com> wrote: > Does anyone have any idea where to start with getting a file upload to > work as part of an Ajax update? > > Ideally, the client side would be able to read the file contents and > pass those up in the POST as a multipart/mime stream. > > However, the JavaScript file elements are carefully guarded against > any kind of JavaScript behaviors, as a security concern (a valid one). > > I'm not sure how other sites manage this; I think they may use an > embedded Flash movie? Any pointers would be most useful. > > -- > Howard M. Lewis Ship > > Creator of Apache Tapestry > > The source for Tapestry training, mentoring and support. Contact me to > learn how I can get you up and productive in Tapestry fast! > > (971) 678-5210 > http://howardlewisship.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@tapestry.apache.org > For additional commands, e-mail: dev-h...@tapestry.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tapestry.apache.org For additional commands, e-mail: dev-h...@tapestry.apache.org