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? 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 Link to comment Share on other sites More sharing options...
x11 Posted April 20, 2021 Share Posted April 20, 2021 ?? Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now