如何从浏览器下载文件而不显示保存和运行对话框 [英] How to download files from browser without showing save and run dialog
本文介绍了如何从浏览器下载文件而不显示保存和运行对话框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试从网络服务器下载文件工作正常但我的问题是每当我下载浏览器显示保存并运行对话框。我想自动下载文件而不显示此对话框。请帮帮我。
先谢谢
Hi,
I am trying to download files from web server its working fine but my problem is that whenever i downloading the browser showing save and run dialog. I want to download files automatically without showing this dialog. Please help me.
Thanks in Advance
推荐答案
尝试使用超链接下载该文件。
假设您在此路径中的文件位于www.abcd.com\pdf\test.pdf。然后尝试使用如下所示的超链接下载
try to download that file using a hyperlink.
suppose you have a file at "www.abcd.com\pdf\test.pdf" in this path. then try to download using the hyperlink as shown below
<a href="www.abcd.com\pdf\test.pdf" target="_Blank"></a>
i认为它不会提示保存或运行对话框。
如果仍然有问题需要理解然后发布你的下载文件代码。
i think it will not prompt for the save or run dialog.
if still having problem to understand then post your download file code.
这篇关于如何从浏览器下载文件而不显示保存和运行对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文