Page 1 of 1

Is there a file.getDefaultDownloadLocation?

PostPosted: Fri May 27, 2022 3:56 am
by roddy
In the file plugin, it is possible to retrieve the getDefaultUploadLocation() and the getDesktopFolder() but I am unable to find a way of getting the default download folder.

Can someone point me in the right direction?

Re: Is there a file.getDefaultDownloadLocation?

PostPosted: Mon May 30, 2022 8:47 am
by mboegem
Hi,

I assume you are looking for the download location of your browser, using web/ng/titanium client?
From security point of view, browsers don't have direct access to your local machine, so I'm afraid this is not available.

If you want to have more control over the local machine you can consider to use NGDesktop.
This is an electron based desktop app, containing node js extensions, which will allow you to access to local file system. (and more).
Please have a look at all ngdesktop extensions in the Servoy Package manger to see what is available.

Hope this helps