Skip to content

Commit

Permalink
fix embedded meta info on replace
Browse files Browse the repository at this point in the history
  • Loading branch information
kingjia90 committed Nov 8, 2023
1 parent 7a8b3dd commit c76f5d1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Controller/Admin/Asset/AssetController.php
Original file line number Diff line number Diff line change
Expand Up @@ -616,6 +616,8 @@ public function replaceAssetAction(Request $request, TranslatorInterface $transl
$stream = fopen($_FILES['Filedata']['tmp_name'], 'r+');
$asset->setStream($stream);
$asset->setCustomSetting('thumbnails', null);
$asset->setCustomSetting('embeddedMetaDataExtracted', false);
$asset->setCustomSetting('embeddedMetaData', []);
$asset->setUserModification($this->getAdminUser()->getId());

$newFileExt = pathinfo($newFilename, PATHINFO_EXTENSION);
Expand Down

0 comments on commit c76f5d1

Please sign in to comment.