Harry Rogers Posted October 12, 2017 Share Posted October 12, 2017 Hi In the OnCreate of ServerModule FilesFolder := paramstr(1) In a session you can then refer to UniServerModule.FilesfolderPath which correctly reflects the path as the 1st parameter supplied to the exe when it starts. if I start a standalone exe server with a parameter of 'c:\test\' FilesFolderPath is indeed c:\test\ However UniServerModule.FIlesFolderURL does not reflect this it still shows the default '/files/' How to get the URL of the FilesFolder in this case? Thanks Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted October 12, 2017 Administrators Share Posted October 12, 2017 Hi, Can you try changing it in OnBeforeInit event? Quote Link to comment Share on other sites More sharing options...
Harry Rogers Posted October 12, 2017 Author Share Posted October 12, 2017 Sorry my mistake! '/files/' is an alias to to the actual path (c:\test\ in this example) - it's working fine - I had another typo that sent me down the wrong track. Thanks as always Quote Link to comment Share on other sites More sharing options...
nuray Posted March 9, 2020 Share Posted March 9, 2020 On 10/12/2017 at 3:46 PM, Farshad Mohajeri said: Hi, Can you try changing it in OnBeforeInit event? merhabalar, unigui servermodule filesfolderurl değiştirmenin yolu varmıdır? dosya linklerine http://myweb/files/myimg.jpg linki oluyor, burdaki files/ kelimesini değiştirebilirmiyim? http://myweb/dokumanlar/myimg.jpg yada yok edebilirmiyim? http://myweb/myimg.jpg gibi... teşekkürler. uniGUI Complete Trial Edition 1.90 Quote Link to comment Share on other sites More sharing options...
mehmet07 Posted March 9, 2020 Share Posted March 9, 2020 Files klasorunu degistirmek istiyorsaniz UniServerModule / Files Folder kismindan yapabilirsiniz 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.