如何在单个下载功能中下载各种类型的文件.请给我一个代码片段 [英] How to download various types of files in a single download function. Please give me a code snippet

查看:53
本文介绍了如何在单个下载功能中下载各种类型的文件.请给我一个代码片段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经将所有应试者上传的文件保存在一个文件夹中.如何在单个下载功能中下载这些各种类型的文件.请给我一个代码段

I have saved the files which have been uploaded by all candidates in a folder. How to download these various types of files in a single download function. Please give me a code snippet

推荐答案

传统解决方案很丑陋:用户输入要上传的文件数,如果以表格的形式进行控制,则页面会创建适当的编号,用户提交并由服务器端处理HTTP帖子.有更多基于ActiveX的多选对话框的优雅解决方案,但这些解决方案仅适用于Windows平台,因此不可接受.

我找到了一个非常不错的演示: http://blueimp.github.com/jQuery-File-Upload/ [ ^ ].

您可以下载页面,计算所有脚本,样式表和其他资源的URL,也可以下载它们.这样,您将获得此页面的本地副本,并查看其工作方式.

—SA
Traditional solution is ugly: the user inputs how many files to upload, the page created appropriate number if control in the form, the user submits it and server-side process the HTTP post. There are more elegant solutions based on ActiveX-based multiselect dialog box, but these solutions are only for Windows platform and hence not acceptable.

I found a very nice demo: http://blueimp.github.com/jQuery-File-Upload/[^].

You can download the page, calculate URLs of all scripts, style sheets and other resources and download them, too. This way, you will get a local copy of this page and see how it works.

—SA


您可以压缩文件,然后将其一起下载.请参考
http://www.4guysfromrolla.com/articles/092910-1.aspx [ ^ ]
http://www.vwd-cms.com/Forum/Forums.aspx?topic=18 [^ ]
You can compress file and then download them together. Refer this
http://www.4guysfromrolla.com/articles/092910-1.aspx[^]
http://www.vwd-cms.com/Forum/Forums.aspx?topic=18[^]


这篇关于如何在单个下载功能中下载各种类型的文件.请给我一个代码片段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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