Welcome Guest, Not a member yet? Register   Sign In
Downloading zip file and load new page
#1

[eluser]swissbastian[/eluser]
Hi there

I'm in a situation where I'm not so sure about the right solution. Maybe you can help me out.

I've got a little "online shop" where registered users can choose photos out of some galeries. The selected photo will be put in a shopping cart. At the end the user can click on 'buy' and the system will provide a download.

Because of the high resolution of these photos the files will be put in a zip file with CI's zip class. Of course the server cannot handle tens of photos at one time. So I decided to split the download in packages of 6 photos maximum.

Imagine the shopping cart showing 20 photos. You click 'buy' and get a zip file of 6 photos downloaded. The page with all photos in the cart stays.

And that's the problem. I already considered some "ways" to get a nice solution:
- try to get multiple downloads at one time (no idea how to do that)
- try to reload the page with the cart automatically when the download begins (nor idea either)
- try to do anything elseā€¦

Because of the header sent by downloading a zip file I don't know how to do another request at the same time.

Any idea?




Theme © iAndrew 2016 - Forum software by © MyBB