Hello,
We just noticed the following :
(combination IW 12.2.4 and TMS IntraWeb Component Pack 5.1.0.0)
The TIWFile file upload is not working when submitted through a TTIWAdvToolButton.
When we submit the form with a TIWButton the upload is OK
When we submit the form with a TTIWAdvToolButton the IWFile1.Filename is empty (or still set to the filename set through a previous submit with the TIWButton)
It should be possible to reproduce with the form below (the onClick event of both buttons is set to IWButton1Click ) :
type
TIWForm1 = class(TIWAppForm)
IWFile1: TIWFile;
IWButton1: TIWButton;
btnOfflineRegister: TTIWAdvToolButton;
IWLabel1: TIWLabel;
procedure IWButton1Click(Sender: TObject);
public
end;
implementation
{$R *.dfm}
procedure TIWForm1.IWButton1Click(Sender: TObject);
begin
if IWFile1.FileName = ''
then IWLabel1.Caption := 'No upload'
else IWLabel1.Caption := 'Uploaded file : '+IWFile1.FileName;
end;
Kind regards