我在网上搜索了很多答案,但一无所获.
I searched quite a lot for an answer on the web and found nothing.
有没有办法通过Javascript获取浏览器的下载路径?
我不想自己设置路径,我只想知道我的文件被用户下载后去了哪里.
I don't want to set the path myself i just wanna know where my file goes after been downloaded by the user.
那是不可能的.
纯浏览器-JavaScript 无法获取有关用户文件系统的信息.默认下载路径也可能包含敏感信息,这是有风险的:
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:
想象一下,有人将他的下载存储在 C:CompanyNameRealNamePhoneNumberAdress
.
Imagine that one stores his downloads at C:CompanyNameRealNamePhoneNumberAdress
.
这篇关于使用javascript获取浏览器下载路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
联系客服