Replace from:
public function __construct(
UrlInterface $urlBuilder,
\Magento\MediaStorage\Model\File\UploaderFactory $uploaderFactory,
\Magento\Store\Model\StoreManagerInterface $storeManager,
Filesystem $fileSystem,
Action\Context $context
){
$this->uploaderFactory = $uploaderFactory;
$this->urlBuilder = $urlBuilder;
$this->fileSystem = $fileSystem;
$this->_storeManager=$storeManager;
parent::__construct($context);
}
to:
public function __construct(
\Magento\MediaStorage\Model\File\UploaderFactory $uploaderFactory,
\Magento\Store\Model\StoreManagerInterface $storeManager,
Filesystem $fileSystem,
Action\Context $context
){
$this->uploaderFactory = $uploaderFactory;
$this->urlBuilder = $this->_url;
$this->fileSystem = $fileSystem;
$this->_storeManager=$storeManager;
parent::__construct($context);
}