Jump to content

UniGui SendFile Error


Franco Grech

Recommended Posts

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

Link to comment
Share on other sites

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;

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...