This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Download multiple files  RSS feed

 
Mayuri Roi
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I am trying to provide a feature to users to download multiple files from our web server.

For example:
A user can select mulitple checkboxes from a list of URLs in a page and by clicking a button, he should be able to save all the selected files (pointed by the URLs) to a directory of his choice on his local machine.

All URLs are pointing to PDF files. So basically user will be downloading PDF files to local machine.

Any guidance is much appreciated?

Thanks.
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could create a zip file that contains all the files selected. With the java.util.zip package that's pretty easy to do.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!