We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 251704c commit 83de22aCopy full SHA for 83de22a
app/code/Magento/Catalog/Controller/Adminhtml/Product/Gallery/Upload.php
@@ -97,13 +97,12 @@ public function execute()
97
$result = $uploader->save(
98
$mediaDirectory->getAbsolutePath($this->productMediaConfig->getBaseTmpMediaPath())
99
);
100
+ $this->_eventManager->dispatch(
101
+ 'catalog_product_gallery_upload_image_after',
102
+ ['result' => $result, 'action' => $this]
103
+ );
104
105
if (is_array($result)) {
- $this->_eventManager->dispatch(
- 'catalog_product_gallery_upload_image_after',
- ['result' => $result, 'action' => $this]
- );
106
-
107
unset($result['tmp_name']);
108
unset($result['path']);
109
0 commit comments