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 994348f commit f0670b6Copy full SHA for f0670b6
app/code/Magento/Downloadable/Helper/Download.php
@@ -200,6 +200,9 @@ public function getContentType()
200
return $this->_downloadableFile->getFileType($this->_resourceFile);
201
}
202
} elseif ($this->_linkType == self::LINK_TYPE_URL) {
203
+ if(is_array($this->_handle->stat($this->_resourceFile)['type'])){
204
+ return end($this->_handle->stat($this->_resourceFile)['type']);
205
+ }else
206
return $this->_handle->stat($this->_resourceFile)['type'];
207
208
return $this->_contentType;
0 commit comments