Under TWebFileUpload, the manual says this:
To upload a file to a server, from the WebFileUpload.OnChange event or from another event, call
WebFileUpload1.Files[0].Upload('http://localhost:8088/upload');
to upload the first file picked by the TWebFileUpload to the server (assuming there is server code listening on port 8088 to handle via the upload action.
But the source code for TFile.Upload
shows this:
procedure TFile.Upload(AAction: string);
begin
//
end;
It's not virtual, so I'm guessing it just never got implemented.
(There are some other methods that are empty as well in both classes.)
Since it's probably a POST request, it would be nice if it had some parameters you could add to the header to get a script of some kind to run.
Actually, it looks like TWebFileUpload.Create
is the only thing implemented in this entire class.
I can't tell how it's even working. It's in the WEBLib.WebCtrls.pas
file. I mean ... I'm getting an OnDroppedFiles event firing and it has a TStringlist that's got the selected file(s) in it. They're being loaded from somewhere, but it's sure not obvious where that code is.