• Post Reply Bookmark Topic Watch Topic
  • New Topic

Downloading Multiple Files

 
Saathvik Reddy
Ranch Hand
Posts: 228
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I want to download multiple files by clicking a link. How can i achieve this?

Thanks,
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The most common thing to do is zip up all the files on the server and return that. HTTP returns one request per response and browsers are not set up to receive multi-part responses this way.
 
pradeep jaladi
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

check yahoo how yahoo mail works with multiple files to download.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65519
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by pradeep jaladi:
check yahoo how yahoo mail works with multiple files to download.

When multiple files are sent in an email message, the Yahoo email client creates one linke per file. That's not what the original question asked.
 
Saathvik Reddy
Ranch Hand
Posts: 228
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ben,

Thanks for your quick reply. I have another question related to this.
If i zip all the files how am i going to extract them on a unix box.
Is there any other format which can be used on windows and unix.

Thanks,
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65519
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
zip files are not Windows-specific.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Like Bear said.

Look at java.util.zip
http://java.sun.com/j2se/1.5.0/docs/api/java/util/zip/package-frame.html
This can be done right in process with pure Java so it won't matter what OS the server or client is using.

I've had Linux on my workstations for over 8 years and have never had a problem working with zip files.
 
Saathvik Reddy
Ranch Hand
Posts: 228
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks to every one for helping me out.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!