diff --git a/bundle/Controller/Callback/Cloudinary/Notify.php b/bundle/Controller/Callback/Cloudinary/Notify.php index ad1ce0c3..1fee4e85 100644 --- a/bundle/Controller/Callback/Cloudinary/Notify.php +++ b/bundle/Controller/Callback/Cloudinary/Notify.php @@ -293,7 +293,7 @@ private function handleContextChanged(array $requestContent): void $filenameFromUrl = basename($publicId); try { $apiResource = Uploader::explicit( - $requestContent['to_public_id'], + CloudinaryRemoteId::fromRemoteId($resource->getRemoteId())->getResourceId(), [ 'type' => CloudinaryRemoteId::fromRemoteId($resource->getRemoteId())->getType(), 'resource_type' => CloudinaryRemoteId::fromRemoteId($resource->getRemoteId())->getResourceType(),