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 6d5ee63 commit 188a3e6Copy full SHA for 188a3e6
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