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\
.
More Related Contents:
- Browser event when downloaded file is saved to disk
- Detect when user accepts to download a file
- Trigger a Browser’s Save-As Dialog via Javascript using only On-page data
- install flash player automatically with javascript [closed]
- How can I stop the browser back button using JavaScript?
- How can I get the scrollbar position with JavaScript?
- Disabling browser print options (headers, footers, margins) from page?
- Accessing nested JavaScript objects and arrays by string path
- Detecting if a browser is using Private Browsing mode
- How to prevent closing browser window?
- Manipulating innerHTML removes the event handler of a child element? [duplicate]
- Method for streaming data from browser to server via HTTP
- Dynamic require in RequireJS, getting “Module name has not been loaded yet for context” error?
- starting file download with JavaScript
- Can Read-Only Properties be Implemented in Pure JavaScript?
- Javascript to download a file from amazon s3 bucket?
- How can I retain the scroll position of a scrollable area when pressing back button?
- Is it possible to add a link to download a file that can only be downloaded by sharing it on Facebook?
- How to create a dynamic file + link for download in Javascript? [duplicate]
- Specify default download folder – possibly with JavaScript?
- How to download the current page as a file / attachment using Javascript?
- How to know browser idle time?
- Why does JavaScript navigator.appName return Netscape for Safari, Firefox and Chrome?
- Why web browsers don’t have jQuery built in? [duplicate]
- Relative paths with fetch in Javascript
- Force page zoom at 100% with JS
- How to trigger CSS “hover state” using Javascript? [duplicate]
- Breaking JavaScript execution when cookie is set
- How to focus an input field on Android browser through javascript or jquery
- HTML5 Video autoplay with sound unmuted