VohminV Posted December 21, 2021 Share Posted December 21, 2021 procedure TMenu.inbtCompleted(Sender: TObject; AStream: TFileStream); var DestName : string; DestFolder : string; i:integer; begin for I := 0 to inbt.MaxFiles-1 do begin DestFolder:=UniServerModule.StartPath+'UploadFolder\'; // It's important to keep in touch with exe Next, create a new one UploadFolder Folder DestName:=DestFolder+ExtractFileName(inbt.FileName); CopyFile(PChar(AStream.FileName), PChar(DestName), False); end; ShowMessage('File: '+inbt.FileName+' Uploaded to folder: '+DestFolder); end; Сохраняется только один файл Quote Link to comment Share on other sites More sharing options...
Sherzod Posted December 21, 2021 Share Posted December 21, 2021 Используете неправильное событие. \FMSoft\Framework\uniGUI\Demos\Desktop\FileUpload - Multiple OnMultiCompleted Quote Link to comment Share on other sites More sharing options...
VohminV Posted December 21, 2021 Author Share Posted December 21, 2021 4 minutes ago, Sherzod said: Используете неправильное событие. \FMSoft\Framework\uniGUI\Demos\Desktop\FileUpload - Multiple OnMultiCompleted AStream как тогда получить ? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted December 21, 2021 Share Posted December 21, 2021 Пример смотрели? Quote Link to comment Share on other sites More sharing options...
VohminV Posted December 21, 2021 Author Share Posted December 21, 2021 1 minute ago, Sherzod said: Пример смотрели? Да спасибо, добавил процедуру .AddFile(const AStream: TFileStream; FileName:string) и в ней сделал сохранение; Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.