Get browser download path with javascript
That is not possible.
Pure browser-JavaScript is not be able to get information about the user's filesystem. The default download path might also contain sensible information, which is risky:
Imagine that one stores his downloads at C:\CompanyName\RealName\PhoneNumber\Adress\
.
https://www.npmjs.com/package/downloads-folder
Usage
const downloadsFolder = require('downloads-folder');
console.log(downloadsFolder());
Installation
$ npm install downloads-folder
Browsers are deliberately isolated from the local filesystem in order to prevent scripting attacks. You cannot get this information.