Franco Grech Posted May 29, 2021 Share Posted May 29, 2021 Good evening Everyone I am trying to use UniGui SendFile procedure and every time i run the procedure i am getting this error Cannot create file "T:\ProgramsCompiled\testapp\cache\testapp_exe\jg6jWWQ8qK10851E524\$$$\files\dressimages\L02\L0201001506_1.jpg". The system cannot find the path specified. and my code is this CurrentFile := \files\dressimages\L02\L0201001506_1.jpg procedure TdtFormTest.act_downloadExecute(Sender: TObject); var imgpath : string; begin imgpath := CurrentFile; UniSession.SendFile(imgpath); end; Did anyone got this error if yes how i can fix it. Thanks for any kind of help Quote Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted May 29, 2021 Share Posted May 29, 2021 8 minutes ago, Franco Grech said: Good evening Everyone I am trying to use UniGui SendFile procedure and every time i run the procedure i am getting this error Cannot create file "T:\ProgramsCompiled\testapp\cache\testapp_exe\jg6jWWQ8qK10851E524\$$$\files\dressimages\L02\L0201001506_1.jpg". The system cannot find the path specified. and my code is this CurrentFile := \files\dressimages\L02\L0201001506_1.jpg procedure TdtFormTest.act_downloadExecute(Sender: TObject); var imgpath : string; begin imgpath := CurrentFile; UniSession.SendFile(imgpath); end; Did anyone got this error if yes how i can fix it. Thanks for any kind of help Hello Please use below code. procedure TdtFormTest.act_downloadExecute(Sender: TObject); begin UniSession.SendFile(UniServerModule.FilesFolderPath+ 'dressimages\L02\L0201001506_1.jpg'); end; 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.