Skip to content

Commit

Permalink
Fix wrong upload option
Browse files Browse the repository at this point in the history
  • Loading branch information
Randy Čupić committed Sep 20, 2024
1 parent 805430d commit 0fcdb93
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/Core/Provider/Cloudinary/Resolver/UploadOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
],
Expand Down Expand Up @@ -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,
],
Expand Down

0 comments on commit 0fcdb93

Please sign in to comment.