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 a051656 commit 1372203Copy full SHA for 1372203
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']) || !file_exists($value['tmp_name'])) {
+ if (!empty($value['tmp_name']) && !file_exists($value['tmp_name'])) {
150
return [__('"%1" is not a valid file.', $label)];
151
152
0 commit comments