Hello,
I have done much searching and experimenting for the answer to this, but to no avail. I thought I would turn to the forums.
I would like for to be able to allow a client have the option to download multiple files as attachments with one request, eg, the client clicks a link on a page, or submit button, and several file download dialog boxes appear.
I have tried,
<?php
$type_ = EZ_ ;
header('Content-type: text/html');
header("Content-Disposition: attachment; filename=file_$type_.html");
readfile("file_$type_.html");
$type_ = prod_ ;
header('Content-type: text/html');
header("Content-Disposition: attachment; filename=file_$type_.html");
readfile("file_$type_.html");
?>
but it only does the first request.
I have tried many other things as well. Any ideas?
Thank you, Allasso
multiple file download for client?
Moderator: General Moderators
- jaoudestudios
- DevNet Resident
- Posts: 1483
- Joined: Wed Jun 18, 2008 8:32 am
- Location: Surrey
Re: multiple file download for client?
I dont think it is possible. This is a security feature by the browsers.
Zip everything together then get the user to download the zip file that contains the multiple files.
Zip everything together then get the user to download the zip file that contains the multiple files.