Found an LZX file called multipartform.lzx in test/components/lz, but that is such a visual form demo not sending any data.
On Mon, May 30, 2011 at 8:37 PM, Raju Bitter <[email protected]> wrote: > What is the recommended way for doing file upload with binary data in > a DHTML app? I did some research, and have some questions. > > a) Is it technically possible with the current LFC without using an iFrame? > b) Is it possible using the <form> tag? > c) Is it possible using datasets with the embedded XHR object? > d) If it's not possible, will OpenLaszlo 5.0 support that? > > After looking into the source code I think that > a) it's only possible when enctype="multipart/formdata" is supported > within the LFC, see http://jira.openlaszlo.org/jira/browse/LPP-9946 > b) the form tag doesn't have an "enctype" attribute like the HTML form > tag, which means you cannot set the enctype to "multipart/formdata" > c) technically yes, but LPP-9946 would have to be implemented for that > > With an ugly JavaScript hack it might be possible to get it working, > using the underlying display object. > > The DHTML version of Webtop supports file upload, as I saw here: > http://jira.openlaszlo.org/jira/browse/LPP-8343 How has that been > implemented? And why isn't that part of the platform? I think an RIA > platform is not complete if you cannot at least upload files with it. > For the Flash runtime, the file uploader is still in the incubator. > That means, OpenLaszlo does not have support for file upload with > components that have gone through the full QA cycle, right? >
