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