Oh, Max, Thanks, really appreciate your answer. :-)

I'd use the http://www.w3.org/TR/FileAPI/

It's only supported by Firefox, Chrome and Opera, but caniuse.com says
Safari 6.0 will support it. I'd be willing to work on an
implementation which could be added to the platform.
http://www.w3.org/TR/FileAPI/
http://caniuse.com/#search=file api

On Thu, Jun 2, 2011 at 6:13 AM, Max Carlson <[email protected]> wrote:
> I don't thnk there's an officially supported way to do this in dhtml. Webtop
> uses a flash-based control even in dhtml, I believe.
>
> I'd be happy to collaborate on a native component - the iframe method may be
> the least evil... What do you think?
>
>
>
> On May 30, 2011, at 11:37 AM, 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?
>

Reply via email to