55143681 Posted November 13, 2023 Share Posted November 13, 2023 As you see ,My project is in "d:\aaatest\debug", In my project's home path, there is a folder "filesHome", my project can read and write all files within that, Now ,I want to read and write a folder out of my project's home path, such as "E:\jdsfajk\dljsafl", Can I do that? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 13, 2023 Share Posted November 13, 2023 Hello, What deployment method? Quote Link to comment Share on other sites More sharing options...
55143681 Posted November 14, 2023 Author Share Posted November 14, 2023 13 hours ago, Sherzod said: Hello, What deployment method? exe,standalone,use hyperserver. Quote Link to comment Share on other sites More sharing options...
55143681 Posted November 14, 2023 Author Share Posted November 14, 2023 Just now, 55143681 said: exe,standalone,use hyperserver. See the image: I have two windows server,names server-a and server-b,every server run a unigui standlone server, the program is web.exe,the two server read/write the same oracle rac database, and I want the two server can read/write the same files Store(NAS channel), that is : Server-a and server-b have their web home "d:\",and they can ask the same file path "e:\filesHome" How to do that? Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted November 14, 2023 Administrators Share Posted November 14, 2023 It depends on account your app is running. There is no difference between a unigui app & other Delphi apps. For Windows Service and IIS ISAPI check the account which is used to run your app. For example, normally it is Local System for Windows Services. Quote Link to comment Share on other sites More sharing options...
55143681 Posted November 15, 2023 Author Share Posted November 15, 2023 22 hours ago, Farshad Mohajeri said: It depends on account your app is running. There is no difference between a unigui app & other Delphi apps. For Windows Service and IIS ISAPI check the account which is used to run your app. For example, normally it is Local System for Windows Services. As you say,my web.exe can read and write the files everywhere, but,if I need download the file with URL, then I will meet a missing file error. Such as UniPdfFrame->pdfFile and Session->sendfile(). How to read and write "e:\\abc\\test.pd" not within my web home path? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 15, 2023 Share Posted November 15, 2023 14 minutes ago, 55143681 said: As you say,my web.exe can read and write the files everywhere, Well yes, this was said taking into account that read and write operations will only be on the server side. Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted November 15, 2023 Administrators Share Posted November 15, 2023 You must put PDF file either under application files folder or application cache folder. Please see our PDFViewer demo. Quote Link to comment Share on other sites More sharing options...
55143681 Posted November 15, 2023 Author Share Posted November 15, 2023 4 minutes ago, Farshad Mohajeri said: You must put PDF file either under application files folder or application cache folder. Please see our PDFViewer demo. Thanks,Every One. 1.Set ServerModule->filesFolder=e:\fileHome\ 2.UniSession->SendFile(UniServerModule()->FilesFolder+"aaa\\test.pdf"); works well. 3.UniPDFFrame1->PdfURL=UniServerModule()->FilesFolderURL+"aaa\\test.pdf"; works well. Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted November 15, 2023 Administrators Share Posted November 15, 2023 Yes, this works too. 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.