diff --git a/app/code/Magento/CatalogImportExport/Model/Import/Uploader.php b/app/code/Magento/CatalogImportExport/Model/Import/Uploader.php index ea695a734b844..bfe0802b2e864 100644 --- a/app/code/Magento/CatalogImportExport/Model/Import/Uploader.php +++ b/app/code/Magento/CatalogImportExport/Model/Import/Uploader.php @@ -148,7 +148,7 @@ public function init() /** * Proceed moving a file from TMP to destination folder * - * @param string $fileName + * @param $fileName * @param bool $renameFileOff * @return array */ @@ -162,12 +162,8 @@ public function move($fileName, $renameFileOff = false) if ($matches[0] === self::HTTP_SCHEME) { $read = $this->_readFactory->create($url, DriverPool::HTTP); - } elseif ($matches[0] === self::HTTPS_SCHEME) { - $read = $this->_readFactory->create($url, DriverPool::HTTPS); } else { - throw new LocalizedException( - __('No adapted DriverPool for File \'%1\'.', $fileName) - ); + $read = $this->_readFactory->create($url, DriverPool::HTTPS); } $fileName = preg_replace('/[^a-z0-9\._-]+/i', '', $fileName);