通过单个操作下载多个文件 [英] Download multiple files with a single action

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

问题描述

我不知道是否可以使用标准的网络技术。

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天全站免登陆