I had tested with an old version long time before. Now I have tested with FMSoft_uniGUI_Plus_Professional_1.0.0.1399_RC and everything is fine,
Thank You.
If I use SendFile twice or more with the same filename, the browser takes the file out of the cache instead the new one.
At the moment I add a Timestamp to the filename, but is there a way to do without a unique name?
I make it similar to you. My only problem is when adding a new form or frame in debug mode Delphi deletes sometimes the "ServiceModule in 'Service\ServiceModule.pas'". Do you have same problem?
It is not a standard. Chrome does/did support it.
Alternative:
Open Windows Explorer -> open the folder -> Press <ctrl>+<a> -> use drag & drop to browser (multiple file upload, see post #8)
You can view most websites in UniURLFrame (= iframe), but you get no access to its content (if server or port are not the same => "same origin policy")
procedure TfrmMain.OpenFrame(Sender: TObject);
var
ts: TUniTabSheet;
fra: TUniFrame;
begin
ts := TUniTabSheet.Create(self);
ts.Caption := (Sender as TUniMenuItem).Caption;
ts.PageControl := PageCtrl;
// PageCtrl.TabIndex := -1; // Workaround / Issue #1025 / Nicht mehr notwendig ?!
PageCtrl.ActivePage := ts;
fra := TFrameClass((Sender as TUniMenuItem).Tag).Create(self); // type TFrameClass = class of TUniFrame;
ts.Tag := Integer(fra); // call "TComponent(PageCtrl.ActivePage.Tag).Free;" when close TabSheet (ActivePage) later
fra.Name := fra.Name + IntToStr(Integer(fra)); // to open a frame more than once
fra.Align := alClient;
fra.Parent := ts;
end;
Application form is the easy one. Create and Free works automaticly, just call the name.
Free form is more flexible. You can decide when create and free is called and you can have more than one form instance per session.