I am downloading object using PHP SDK and saving it local. But when i opens file that have raw/encrypted data. How i can download file with original content. File is csv format. Need to fix it urgently.
`
$objects = $s3->getIterator('ListObjects', array('Bucket' => $bucket, "Prefix" => "my folder path"));
foreach ($objects as $object) {
$objkey = $object['Key'];
$filename = basename($objkey);
$result = $s3->getObject(array(
'Bucket' => $bucket,
'Key' => $objkey,
'SaveAs' => $uploadPath . "/" . $filename
));
}`
Aucun commentaire:
Enregistrer un commentaire