kamilolesinski89's avatar

How to modify Amazon S3 tag using s3 file driver (PutObjectTagging)

I'm looking for way of modifying Amazon S3 tag of already uploaded file.

S3 allow for doing that:

https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutObjectTagging.html

For first upload it can be done like this:

 $s3 = Storage::disk('s3');
            $s3->put(
                FILE,
                [
                    'Tagging' => 'type=xyz',
                    'visibility' => 'private',
                ]
);

But i would add new tag for existing, already uploaded file.

Is there any way of doing that using Storage driver?

Regards

0 likes
1 reply
jmny's avatar

I have the same question if anyone ..

Please or to participate in this conversation.