Win a copy of Murach's Python Programming this week in the Jython/Python 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: 42970
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!