影响浏览器下载目标 [英] Influence browser download destination
问题描述
谢谢,
Mo
服务器端,没有。您的浏览器客户端控制首选项/选项中的下载位置(取决于您使用的浏览器)。
但是,您可以通过JavaScript。看看这个控件:
或if您只能使用IE,您可以使用这个:
document.execCommand(saveas,false,c:\ \ where \\\\\\\\\\\\\\\\\\\\\\\。))))))))))))
is there a way to influence the browsers download directory for a given HTTP download? The scenario is that some of our users are complaining that they have to click through the directory structure whenever they download a file. As I don't know their individual preferences, it would be nice to make the browser use the last chosen download directory. Is this possible? I know that users can choose their download destination from within most browsers' options dialog (firefox, chrome, etc.), but can I influence that behavior from the server side?
Thanks, Mo
Server side, no. Your browser client controls where to download in the Preferences/Options (depending what browser you are using).
However, you can via JavaScript. Take a look at this control:
or if you are only using IE, you can use this:
document.execCommand("saveas",false,"c:\\where\\yo u\\want\\to\\save\\it\\to.txt");
这篇关于影响浏览器下载目标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!