如何让用户设置下载文件的目标文件夹 [英] How to allow user to set destination folder for downloaded files

查看:172
本文介绍了如何让用户设置下载文件的目标文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的web应用程序有一个下载按钮,当用户点击一个文件被下载到下载文件夹中。我想补充一个选项,在这里用户可以选择在该文件应该被下载的文件夹。

In my web application there is a download button, when user clicks on it a file gets downloaded to the "Downloads" folder. I want to add an option where user can select the folder in which the file should be downloaded.

我怎样才能做到这一点?是否有任何插件可用呢?

How can I do this? Is there any plugin available for this?

推荐答案

您将无法使用JavaScript或jQuery来选择用户的下载位置。这只能从用户端设置,它包含在浏览器上。 <一href=\"http://stackoverflow.com/questions/4453798/specify-default-download-folder-possibly-with-javascript\">otherwise它会侵犯用户的安全。你可以建议是该文件的名称。 更多

You will not be able to choose the user's download location with javascript or jquery. This can only be set from the user's end, It contains on the browser. otherwise it would violate user's security. What you can suggest is the file's name. Read more

这篇关于如何让用户设置下载文件的目标文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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