You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Setting X-Delete-After and other system metadata on objectStore #249
I need to set X-Delete-At or X-Delete-After for already existing Object in storage. I tried to do it using $openstack->objectStoreV1()
->getContainer($containerName)
->getObject($fileName)->mergeMetadata([
'X-Delete-After' => "10",
]);
AND
I used: $openstack->objectStoreV1() ->getContainer($containerName) ->getObject($fileName) ->mergeMetadata([ 'deleteAfter' => '100', ]);
But it sets X-Object-Meta-deleteAfter param, and not the X-Delete-After metadata value.
Activity
haphan commentedon Aug 21, 2018
@tarik23 Thanks for reporting this bug.
Indeed
->mergeMetadatais not meant to update system metadata likeX-Delete-AfterorX-Delete-Atin #250, I've added a generic method
$object->updatefor this purpose. Now you can update custom metadata and set X-Delete-At at the same time.Do check-out branch
objectstorage-metaand let me know if it works for you.austin1030 commentedon Dec 4, 2020
How come I can't call
$obj->updateon v3?