B4J Question [ABMaterial] copy file to users folder

Harris

Expert
Licensed User
Longtime User
I have saved a file (xls) on the server. How does one retrieve this file to local users drive?

Thanks
 

alwaysbusy

Expert
Licensed User
Longtime User
This has to be a manual process as the browser is not allowed direct access to the users local computer for security reasons There are some 'hacks' that can do it, but the browser support is extremely limited. You can however add a link in your page when the xls is generated so the user clicks on it and can download it himself.
 
Upvote 0

Harris

Expert
Licensed User
Longtime User
This has to be a manual process as the browser is not allowed direct access to the users local computer for security reasons There are some 'hacks' that can do it, but the browser support is extremely limited. You can however add a link in your page when the xls is generated so the user clicks on it and can download it himself.

I understand. Do you have a short example of generating this link, for the user to download? This is beyond my current knowledge and only dredges up nightmares of php to handle such. Otherwise, I will need to setup a shared directory on their network and dump created files in there. Yes, I am such a noob.

I get confused with what I can mix from a UI app and a non-UI app to perform "other" operations (like a file selection).

Much Appreciated.
 
Upvote 0

Harris

Expert
Licensed User
Longtime User
Yes, that works - after I define the path to copy file to / and where to get it from.
Thanks
 
Upvote 0
Top