diff --git a/app/code/Magento/CatalogImportExport/Model/Import/Uploader.php b/app/code/Magento/CatalogImportExport/Model/Import/Uploader.php index 24ceeb3cffa35..d549d4ef8840d 100644 --- a/app/code/Magento/CatalogImportExport/Model/Import/Uploader.php +++ b/app/code/Magento/CatalogImportExport/Model/Import/Uploader.php @@ -20,14 +20,9 @@ class Uploader extends \Magento\MediaStorage\Model\File\Uploader /** * HTTP scheme * used to compare against the filename and select the proper DriverPool adapter + * @var string */ - const HTTP_SCHEME = 'http://'; - - /** - * HTTPS scheme - * used to compare against the filename and select the proper DriverPool adapter - */ - const HTTPS_SCHEME = 'https://'; + private $httpScheme = 'http://'; /** * Temp directory. @@ -160,7 +155,7 @@ public function move($fileName, $renameFileOff = false) if (preg_match('/\bhttps?:\/\//i', $fileName, $matches)) { $url = str_replace($matches[0], '', $fileName); - if ($matches[0] === self::HTTP_SCHEME) { + if ($matches[0] === $this->httpScheme) { $read = $this->_readFactory->create($url, DriverPool::HTTP); } else { $read = $this->_readFactory->create($url, DriverPool::HTTPS);