Send multiple files for download to a user on clic

2019-06-12 04:48发布

问题:

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 :)