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.
2 parents 4126ffc + a7b9122 commit 6045a9bCopy full SHA for 6045a9b
lib/internal/Magento/Framework/File/Uploader.php
@@ -546,7 +546,7 @@ private function _setUploadFileId($fileId)
546
547
preg_match("/^(.*?)\[(.*?)\]$/", $fileId, $file);
548
549
- if (is_array($file) && count($file) > 0 && count($file[0]) > 0 && count($file[1]) > 0) {
+ if (is_array($file) && count($file) > 0 && !empty($file[0]) && !empty($file[1])) {
550
array_shift($file);
551
$this->_uploadType = self::MULTIPLE_STYLE;
552
0 commit comments