Is there a file.getDefaultDownloadLocation?

Questions and answers on designing your Servoy solutions, database modelling and other 'how do I do this' that don't fit in any of the other categories

Is there a file.getDefaultDownloadLocation?

Postby roddy » Fri May 27, 2022 3:56 am

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?
roddy
 
Posts: 100
Joined: Mon Oct 26, 2020 12:32 am

Re: Is there a file.getDefaultDownloadLocation?

Postby mboegem » Mon May 30, 2022 8:47 am

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
Marc Boegem
Solutiative / JBS Group, Partner
• Servoy Certified Developer
• Servoy Valued Professional
• Freelance Developer

Image

Partner of Tower - The most powerful Git client for Mac and Windows
User avatar
mboegem
 
Posts: 1742
Joined: Sun Oct 14, 2007 1:34 pm
Location: Amsterdam


Return to Programming with Servoy

Who is online

Users browsing this forum: No registered users and 9 guests