Skip to content

Commit 40f64f9

Browse files
rajneesh1devRajneesh Gupta
authored andcommitted
Update uploader.php fix issue 20098
1 parent d20f927 commit 40f64f9

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
@@ -191,9 +191,9 @@ public function move($fileName, $renameFileOff = false)
191191
}
192192

193193
$fileName = preg_replace('/[^a-z0-9\._-]+/i', '', $fileName);
194-
$filePath = $this->_directory->getRelativePath($filePath . $fileName);
194+
$relativePath = $this->_directory->getRelativePath($filePath . $fileName);
195195
$this->_directory->writeFile(
196-
$filePath,
196+
$relativePath,
197197
$read->readAll()
198198
);
199199
}

0 commit comments

Comments
 (0)