Skip to content

Commit 9ca8077

Browse files
sivaschenkoNazar65
andauthored
Update app/code/Magento/Eav/Model/Attribute/Data/File.php
Co-Authored-By: Nazar65 <[email protected]>
1 parent 20fd589 commit 9ca8077

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/Eav/Model/Attribute/Data

1 file changed

+1
-1
lines changed

app/code/Magento/Eav/Model/Attribute/Data/File.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ protected function _validateByRules($value)
146146
return $this->_fileValidator->getMessages();
147147
}
148148

149-
if (empty($value['tmp_name']) && !is_uploaded_file($value['tmp_name'])) {
149+
if (empty($value['tmp_name']) || !is_uploaded_file($value['tmp_name'])) {
150150
return [__('"%1" is not a valid file.', $label)];
151151
}
152152

0 commit comments

Comments
 (0)