From e62021f2d2065bfa31ea95161fee9963f75d5069 Mon Sep 17 00:00:00 2001 From: Yaroslav Onischenko Date: Thu, 29 Oct 2015 17:46:02 +0200 Subject: [PATCH] MAGETWO-43953: Unable to import images when DocumentRoot is pub/index.php --- app/code/Magento/CatalogImportExport/Model/Import/Uploader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/code/Magento/CatalogImportExport/Model/Import/Uploader.php b/app/code/Magento/CatalogImportExport/Model/Import/Uploader.php index f22d910ccd45e..3d47731b6f9a5 100644 --- a/app/code/Magento/CatalogImportExport/Model/Import/Uploader.php +++ b/app/code/Magento/CatalogImportExport/Model/Import/Uploader.php @@ -155,7 +155,7 @@ public function move($fileName, $renameFileOff = false) $filePath = $this->_directory->getRelativePath($this->getTmpDir() . '/' . $fileName); $this->_setUploadFile($filePath); - $result = $this->save($this->getDestDir()); + $result = $this->save($this->_directory->getAbsolutePath($this->getDestDir())); $result['name'] = self::getCorrectFileName($result['name']); return $result; }