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.
2 parents f7d4822 + 103c28b commit 7ea9019Copy full SHA for 7ea9019
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