使用javascript获取浏览器下载路径 [英] Get browser download path with javascript

查看:121
本文介绍了使用javascript获取浏览器下载路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在网上搜索了很多答案,但一无所获.

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆