从不同文件夹下载不同的文件 [英] download different files from different folders

查看:65
本文介绍了从不同文件夹下载不同的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的问题是,假设驱动器D中有两个文件夹A和B,其中包含文件,现在我想在单击按钮上从A和B下载浏览器中的文件。如何在javascript或jquery中执行此操作?

My question is,suppose there are two folders "A" and "B" in drive "D" with files in them,now I want to download files in browser from "A" and "B" on a single button click.How can I do this in javascript or jquery?

推荐答案





我想你想要的单击按钮下载两个文件。



您可以使用WebClient的异步下载。



然后您可以在同一事件下调用一个或两个以上的文件进行下载:链接 [ ^ ]


到目前为止你尝试了什么?



如果文件夹列表是动态的,请让用户输入选择文件夹和搜索文件夹中的文件。

如果文件夹列表是静态的,搜索文件夹中的文件。



在任何一种情况下,只要选择完成就开始复制。
What have you tried so far?

if the folder list is dynamic, make the user enter select the folders and search for files within the folders.
If the folder list is static, search for files within the folders.

In either case, start copy once select is done.


这篇关于从不同文件夹下载不同的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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