From c155b232663fabc4dd3f87898269982c6cddf97e Mon Sep 17 00:00:00 2001 From: Dawid Parafinski Date: Mon, 2 Dec 2024 12:23:42 +0100 Subject: [PATCH] IBX-8534: Replaced deprecated path with inputUri --- src/lib/API/ContentData/FieldTypeData/ImageDataProvider.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/API/ContentData/FieldTypeData/ImageDataProvider.php b/src/lib/API/ContentData/FieldTypeData/ImageDataProvider.php index 02d05a4..9cabed5 100644 --- a/src/lib/API/ContentData/FieldTypeData/ImageDataProvider.php +++ b/src/lib/API/ContentData/FieldTypeData/ImageDataProvider.php @@ -48,7 +48,7 @@ public function generateData(string $contentTypeIdentifier, string $fieldIdentif return new Value( [ - 'path' => $filePath, + 'inputUri' => $filePath, 'fileSize' => filesize($filePath), 'fileName' => basename($filePath), 'alternativeText' => $this->getFaker()->text, @@ -62,7 +62,7 @@ public function parseFromString(string $value) return new Value( [ - 'path' => $filePath, + 'inputUri' => $filePath, 'fileSize' => filesize($value), 'fileName' => basename($value), 'alternativeText' => basename($value),