AWS PHP SDK
I have a bucket, and there are folders with the following files:
folder1
-- photo1
-- photo2
-- photo3
-- photo4
folder2
-- pic1
-- pic2
-- pic3
-- pic4
How can I create a download link for these files: photo1, photo4, pic2? Don't download files on a separate link.
One more question. Is it possible to create a zip archive of these files and download it?
Connecting to the cloud looks like this
$s3 = S3Client::factory(array(
'credentials' => array(
'key' => '',
'secret' => '',
),
'signature' => 'v4',
'version' => 'latest',
'region' => 'us-east-1',
));