Skip to content

Commit 7a7ac4b

Browse files
Merge remote-tracking branch 'remotes/github/MC-10959' into EPAM-PR-37
2 parents e9c2d0b + 0cef062 commit 7a7ac4b

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'])) {
150150
return [__('"%1" is not a valid file.', $label)];
151151
}
152152

0 commit comments

Comments
 (0)