Change Default Storage Path


I’m building a web application that serves some word documents for download from a URL .
Opening the documents from the url posts a box asking to save the document but the default storage path is set to library - application support - Application Name - Downloads

How do you set this default storage path to lets say the actual download folder on OSX or download folder on windows ?

Thank you in advance .


You can change it through the session module.


Thank you got it working after updating to the latest prebuild .


You might find electron-dl useful.


Thank you sindresorhus i’ll have a look into that .