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 20fd589 commit 9ca8077Copy full SHA for 9ca8077
app/code/Magento/Eav/Model/Attribute/Data/File.php
@@ -146,7 +146,7 @@ protected function _validateByRules($value)
146
return $this->_fileValidator->getMessages();
147
}
148
149
- if (empty($value['tmp_name']) && !is_uploaded_file($value['tmp_name'])) {
+ if (empty($value['tmp_name']) || !is_uploaded_file($value['tmp_name'])) {
150
return [__('"%1" is not a valid file.', $label)];
151
152
0 commit comments