diff --git a/lib/Core/Provider/Cloudinary/Resolver/UploadOptions.php b/lib/Core/Provider/Cloudinary/Resolver/UploadOptions.php index 23833911..50cd57d1 100644 --- a/lib/Core/Provider/Cloudinary/Resolver/UploadOptions.php +++ b/lib/Core/Provider/Cloudinary/Resolver/UploadOptions.php @@ -68,7 +68,7 @@ public function resolve(ResourceStruct $resourceStruct): array ]; if ($resourceStruct->getFolder() && $this->folderMode === CloudinaryProvider::FOLDER_MODE_DYNAMIC) { - $options['folder'] = $resourceStruct->getFolder()->getPath(); + $options['asset_folder'] = $resourceStruct->getFolder()->getPath(); } return $options; diff --git a/tests/lib/Core/Provider/Cloudinary/Resolver/UploadOptionsTest.php b/tests/lib/Core/Provider/Cloudinary/Resolver/UploadOptionsTest.php index 1ec96f6a..153e0754 100644 --- a/tests/lib/Core/Provider/Cloudinary/Resolver/UploadOptionsTest.php +++ b/tests/lib/Core/Provider/Cloudinary/Resolver/UploadOptionsTest.php @@ -193,7 +193,7 @@ public static function dataProvider(): array 'access_mode' => 'authenticated', 'access_control' => [['access_type' => 'token']], 'tags' => ['backup'], - 'folder' => 'files/backups', + 'asset_folder' => 'files/backups', ], CloudinaryProvider::FOLDER_MODE_DYNAMIC, ], @@ -309,7 +309,7 @@ public static function dataProvider(): array 'access_mode' => 'authenticated', 'access_control' => [['access_type' => 'token']], 'tags' => [], - 'folder' => 'videos', + 'asset_folder' => 'videos', ], CloudinaryProvider::FOLDER_MODE_DYNAMIC, ],