问题
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