mhmda Posted May 9, 2019 Share Posted May 9, 2019 Hi there, I check the file type and in some cases I need to delete the copied file but it uses by the unigui app. mFileUpload.TargetFolder := ServerModule.StartPath+'compsdata\'; ..... procedure TfrmAttachFiles.mFileUploadCompleted(Sender: TObject; .... DestName:=ExtractFileName(AStream.FileName); CopyFile(PChar(AStream.FileName), PChar(DestName), False); .... deletefile(ServerModule.StartPath+'compsdata\'+DestName);//file is used by other process (unigui app in this case) Any idea? Quote Link to comment Share on other sites More sharing options...
t4ufiq Posted May 11, 2019 Share Posted May 11, 2019 waiting for solution too,.. for now,.. can modify the copied file only for uploaded file,.. i put on temp folder, and give procedure to clean it Quote Link to comment Share on other sites More sharing options...
x11 Posted April 20, 2021 Share Posted April 20, 2021 ?? 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.