mardi 29 septembre 2015

How do I start download all images with php from a generated Amazon S3 download link?

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.

http://ift.tt/1h6eEly

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