Send multiple files for download to a user on click of a button in asp.net mvc

試著忘記壹切 提交于 2020-01-02 23:37:53

问题


How to send multiple files for download to a user/browser on click of a button ?

I know how to sent single file for download. How to send two or more files ?


回答1:


A quick search points at the following link.

Ultimately, HTML is designed for single request / response communication. Your options are to consider multipart documents, or perhaps zip your output files together.

EDIT: There's another question here as well as here.




回答2:


Some seconds late, but I think Nick is right. You could find some source code to zip all your files and send them as one :)



来源:https://stackoverflow.com/questions/17422243/send-multiple-files-for-download-to-a-user-on-click-of-a-button-in-asp-net-mvc

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!