I'am using Amazon S3 SDK and have a function that uses the SDK to generate a download links and put them in an array.
I want to start download all images in the array.
This is an example of a generated download link and the download will start automatically when you click on it. The link may not work now because I have expiration time of 10 minutes.
When I run this code I only force download the last image in the array.
foreach ($imageUrl as $image) {
header('Location: '.$image);
}
Aucun commentaire:
Enregistrer un commentaire