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 689c07e commit edcbdabCopy full SHA for edcbdab
app/code/Magento/MediaStorage/Model/File/Validator/Image.php
@@ -89,7 +89,7 @@ public function isValid($filePath): bool
89
$fileMimeType = $this->fileMime->getMimeType($filePath);
90
$isValid = false;
91
92
- if (stripos(json_encode($this->imageMimeTypes), $fileMimeType) !== false) {
+ if (stripos(json_encode($this->imageMimeTypes), json_encode($fileMimeType)) !== false) {
93
$defaultAdapter = $this->config->getAdapterAlias();
94
try {
95
$image = $this->imageFactory->create($filePath, $defaultAdapter);
0 commit comments