I'm just wondering, what is the purpose of TWebOpenDialog?

I was trying to use it for an application I'm currently working on, and I can't see what I'm supposed to do with it.

In a typical VCL version of the OpenDialog component, you have the Execute method, which is a function. But the WEB Core version has Execute as a procedure.

So after I run the procedure, what's the next step? The only thing I can do is show the filename that was selected, but I don't see what else I can do with this component.

There are two different cases that I'm trying to accomplish:

  1. After I select a text file, how do I load the contents of that text file into a memo? In VCL, I would simply do:
    if OpenDialog1.Execute then Memo1.Lines.LoadFromFile(OpenDialog1.FileName);
    But this doesn't work in WEB Core.

  2. How do I pass the selected file over to WebFileUpload so that I can upload it to my server?