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 77297a1 commit 103c28bCopy full SHA for 103c28b
app/code/Magento/Catalog/Model/Product/Gallery/Processor.php
@@ -196,7 +196,7 @@ public function addImage(
196
$mediaGalleryData = $product->getData($attrCode);
197
$position = 0;
198
199
- $absoluteFilePath = $this->mediaDirectory->getAbsolutePath($file);
+ $absoluteFilePath = $this->mediaDirectory->getAbsolutePath($destinationFile);
200
$imageMimeType = $this->mime->getMimeType($absoluteFilePath);
201
$imageContent = $this->mediaDirectory->readFile($absoluteFilePath);
202
$imageBase64 = base64_encode($imageContent);
0 commit comments