Html 单击下载链接时,如何强制 chrome 显示另存为对话框?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/8863940/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to force chrome display a Save As Dialog when i click a download link?
提问by iuwei
I'm using WebKitBlobBuilder in chrome to generate a text file in user side.
我在 chrome 中使用 WebKitBlobBuilder 在用户端生成一个文本文件。
Now, i need to show a save as dialog, let user decide which folder to put the newly generated file.(In chrome)
现在,我需要显示一个另存为对话框,让用户决定将新生成的文件放在哪个文件夹中。(在 chrome 中)
"Save As Dialog", no browser configurations.
“另存为对话框”,没有浏览器配置。
How? Thanks!
如何?谢谢!
回答by Sheshachaliah N
Check the Settings --> Show Advanced Settings --> Downloads section. Tick the "Ask where to save each file before downloading" option. And try!
检查设置 --> 显示高级设置 --> 下载部分。勾选“下载前询问每个文件的保存位置”选项。并尝试!