Skip to content

Commit

Permalink
Fixed file validation error
Browse files Browse the repository at this point in the history
  • Loading branch information
konarshankar07 committed Sep 10, 2020
1 parent 21f1eb3 commit 0cf0e09
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/internal/Magento/Framework/File/Mime.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@ public function getMimeType($file)

if (function_exists('mime_content_type')) {
$result = $this->getNativeMimeType($file);
} else {
$imageInfo = getimagesize($file);
$result = $imageInfo['mime'];
}

if (null === $result && isset($this->mimeTypes[$extension])) {
Expand Down

0 comments on commit 0cf0e09

Please sign in to comment.