I am trying to retrieve the Tags
property of a file from AWS S3 with Laravel 5.8 (for Tags in AWS, I mean this) I know that I can retrieve a file like:
$storage->get($filePath);
But how to get the tags from that file?
Any help will be appreciated
Thank you
You have to use getObjectTagging api of aws
$result = $client->getObjectTagging([
'Bucket' => '<string>', // REQUIRED
'Key' => '<string>', // REQUIRED
'VersionId' => '<string>',
]);
For Example
$result = $client->getObjectTagging([
'Bucket' => 'examplebucket',
'Key' => 'HappyFace.jpg',
]);
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments