We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6789eb4 commit 7f3808cCopy full SHA for 7f3808c
app/code/Magento/DownloadableImportExport/Helper/Uploader.php
@@ -38,6 +38,11 @@ class Uploader extends \Magento\Framework\App\Helper\AbstractHelper
38
*/
39
protected $parameters = [];
40
41
+ /**
42
+ * @var \Magento\Framework\DB\Adapter\AdapterInterface
43
+ */
44
+ public $connection;
45
+
46
/**
47
* Construct
48
*
@@ -62,6 +67,7 @@ public function __construct(
62
67
$this->fileUploader->init();
63
68
$this->fileUploader->setAllowedExtensions($this->getAllowedExtensions());
64
69
$this->fileUploader->removeValidateCallback('catalog_product_image');
70
+ $this->connection = $resource->getConnection('write');
65
71
$this->mediaDirectory = $filesystem->getDirectoryWrite(DirectoryList::ROOT);
66
72
}
73
0 commit comments