Get browser download path with javascript

后端 未结 4 1705
隐瞒了意图╮
隐瞒了意图╮ 2020-11-29 11:07

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 d

4条回答
  •  有刺的猬
    2020-11-29 11:40

    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\.

提交回复
热议问题