Skip to content

Commit 46340c4

Browse files
authored
ENGCOM-3809: Product image failure when importing through CSV #20098 #20127
2 parents 337514e + 6d7d1e3 commit 46340c4

File tree

1 file changed

+2
-2
lines changed
  • app/code/Magento/CatalogImportExport/Model/Import

1 file changed

+2
-2
lines changed

app/code/Magento/CatalogImportExport/Model/Import/Uploader.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,9 @@ public function move($fileName, $renameFileOff = false)
180180
}
181181

182182
$fileName = preg_replace('/[^a-z0-9\._-]+/i', '', $fileName);
183-
$filePath = $this->_directory->getRelativePath($filePath . $fileName);
183+
$relativePath = $this->_directory->getRelativePath($filePath . $fileName);
184184
$this->_directory->writeFile(
185-
$filePath,
185+
$relativePath,
186186
$read->readAll()
187187
);
188188
}

0 commit comments

Comments
 (0)