Download files in throught web-browser

Find and share HowTos to various installations / configurations!
6 posts • Page 1 of 1
NFedorenko
Posts:45
Joined: Wed Jun 15, 2016 5:41 pm

Download files in throught web-browser

Post by NFedorenko »

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?

mkoller
Posts:741
Joined: Fri Sep 17, 2010 9:03 am

Re: Download files in throught web-browser

Post by mkoller »

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

NFedorenko
Posts:45
Joined: Wed Jun 15, 2016 5:41 pm

Re: Download files in throught web-browser

Post by NFedorenko »

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)?

mkoller
Posts:741
Joined: Fri Sep 17, 2010 9:03 am

Re: Download files in throught web-browser

Post by mkoller »

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.

NFedorenko
Posts:45
Joined: Wed Jun 15, 2016 5:41 pm

Re: Download files in throught web-browser

Post by NFedorenko »

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?

mkoller
Posts:741
Joined: Fri Sep 17, 2010 9:03 am

Re: Download files in throught web-browser

Post by mkoller »

Yes, kind of

6 posts • Page 1 of 1