如何设置链接的下载位置? [英] How to set download location for a link?

查看:94
本文介绍了如何设置链接的下载位置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个链接,当我单击该链接时,它将把文件下载到用户计算机上的特定位置(桌面)(基本上会弹出另存为...对话框),

I want to create a link where when I click on it, it will download a file to a specific location (the Desktop) on the user's computer (basically the "save link as..." dialog will pop up with the Desktop as the default location).

这可能吗?

谢谢!

推荐答案

这是用户设置,您不能强制用户将文件下载到特定目录。最好的办法是链接到文件,并允许用户选择正确的位置来保存文件。

That is a user setting and you cannot force the user to download a file to a specific directory. The best thing you can do is to link to the file and allow the user to choose the correct place to save the file.

这篇关于如何设置链接的下载位置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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