How can I let a user download multiple files when a button is clicked?

前端 未结 9 1118
不知归路
不知归路 2020-11-27 18:18

So I have a httpd server running which has links to a bunch of files. Lets say the user selects three files from a file list to download and they\'re located at:

         


        
9条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-27 19:12

    You can either:

    1. Zip the selected files and return the one zipped file.
    2. Open multiple pop-ups each prompting for a download.

    Note - option one is objectively better.

    Edit Found an option three: https://stackoverflow.com/a/9425731/1803682

提交回复
热议问题