Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

multiple file download????

Status
Not open for further replies.

matttoby

Programmer
Mar 30, 2001
14
GB
Hi

I am currently working on a Music Library, which allows users to create a cart with several MP3 files. One of the options on the cart page allows the customer to download all files contained within his cart in Zip Format. The person who I’m writing the site for has asked if it would be possible for the users to download all the files from their cart in one go without having to use Zip Files. Does anybody know of a way of doing this without asking the customer to click on each individual MP3. Your help would be much appreciated.

Matt
 
U have to create an script witch automaticaly download the files from the cart... ________
George, M
 
Please could you ellaborate a little further. Would the script need to be on the client or the server side??/

Thnx

Matt
 
Well, HTTP doesn't support transmitting multiple files in one stream.

One way around that limit would be to create a frameset with a frame for each mp3.

Another way around it would be to create a pop-up window for each download. This would probably be anoying though.

In either case you are going to have a problem with the browser seeing that the files are .MP3 and trying to spawn a player for them instead of downloading them.

Then you are going to run into the additional problem that IE is HTTP1.1 compliant, so it won't make more than two HTTP connects to one server at any one time, so only two downloads will go at a time.

The only other option besides .ZIP would be to do something like Netscape smart download, that uses a java or activex plugin to do the downloads. Not sure if anything like that is available free though. The user would also have to accept the activex warning or install a plugin in netscape.

.
.. Eat, think and be merry .
... ....................... .
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top