Hello,
I want to make some kind of file storage on my server.
I've created a shared folder and put some files there (.docx, .pdf).
I want to open files in browser, using ULC, or to download them.
(select file and download it to PC)
How can I do that?
Download files in throught web-browser
- mkoller
- Posts:741
- Joined: Fri Sep 17, 2010 9:03 am
Re: Download files in throught web-browser
Your files need to reside in some subfolder of your project. Best place for this is below your "data" directory.
Then you can simply address each file with e.g. http://server/data/subdir/file.pdf
Then you can simply address each file with e.g. http://server/data/subdir/file.pdf
- NFedorenko
- Posts:45
- Joined: Wed Jun 15, 2016 5:41 pm
Re: Download files in throught web-browser
Thank you for the answer.
The only thing I need to know, is what function I should use to open file (by pushing button in web client)?
The only thing I need to know, is what function I should use to open file (by pushing button in web client)?
- mkoller
- Posts:741
- Joined: Fri Sep 17, 2010 9:03 am
Re: Download files in throught web-browser
I'm not fully clear which kind of web client your are using (e.g. WebClient browser plugin or Ultralight Web Client (aka ULC UX)).
If the former, where CTRL Scripts are run on the client machine, you can use the openUrl() ctrl function.
When you try to do the same in ULC-UX, then this will not work, since all CTRL code is run server-side.
You would need a way to transport information back to the browser, which is currently not available from CTRL.
If the former, where CTRL Scripts are run on the client machine, you can use the openUrl() ctrl function.
When you try to do the same in ULC-UX, then this will not work, since all CTRL code is run server-side.
You would need a way to transport information back to the browser, which is currently not available from CTRL.
- NFedorenko
- Posts:45
- Joined: Wed Jun 15, 2016 5:41 pm
Re: Download files in throught web-browser
Thanks for the answer.
Under web-client everything works properly.
And under ULC UX of course openUrl doesn't work (because every jobs are doing on server).
It seems like ULC UX is some kind of "remote desktop" that translates pictures to web-browser, isn't it?
Under web-client everything works properly.
And under ULC UX of course openUrl doesn't work (because every jobs are doing on server).
It seems like ULC UX is some kind of "remote desktop" that translates pictures to web-browser, isn't it?
- mkoller
- Posts:741
- Joined: Fri Sep 17, 2010 9:03 am
Re: Download files in throught web-browser
Yes, kind of