Jump to content

update FilesFolderPathURL


Harry Rogers

Recommended Posts

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

 

Link to comment
Share on other sites

  • 2 years later...
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

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...