一次操作即可下载多个文件 [英] Download multiple files with a single action

查看:26
本文介绍了一次操作即可下载多个文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不确定使用标准网络技术是否可行.

I am not sure if this is possible using standard web technologies.

我希望用户能够在一次操作中下载多个文件.即点击文件旁边的复选框,然后获取所有被选中的文件.

I want the user to be able to download multiple files in a single action. That is click check boxes next to the files, and then get all the files that were checked.

是否可以 - 如果可以,您推荐什么基本策略.我知道我可以使用彗星技术来创建触发 HttpResponse 的服务器端事件,但我希望有一种更简单的方法.

Is it possible - if so what basic strategy do you recommend. I know I can use comets technology to create server side events that trigger an HttpResponse but I am hoping there is a simpler way.

推荐答案

HTTP 不支持一次下载多个文件.

HTTP does not support more than one file download at once.

有两种解决方案:

  • 打开 x 个窗口以启动文件下载(这将使用 JavaScript 完成)
  • 首选解决方案创建一个脚本来压缩文件

这篇关于一次操作即可下载多个文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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