I searched quite a lot for an answer on the web and found nothing.
Is there a way to get the download path of a browser via Javascript?
I don't want to set the path myself i just wanna know where my file goes after been downloaded by the user.
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\
.
Browsers are deliberately isolated from the local filesystem in order to prevent scripting attacks. You cannot get this information.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With