Skip to content

Commit

Permalink
Update app/code/Magento/Eav/Model/Attribute/Data/File.php
Browse files Browse the repository at this point in the history
Co-Authored-By: Nazar65 <nazarn96@gmail.com>
  • Loading branch information
sivaschenko and Nazar65 authored Jan 18, 2019
1 parent 20fd589 commit 9ca8077
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/code/Magento/Eav/Model/Attribute/Data/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ protected function _validateByRules($value)
return $this->_fileValidator->getMessages();
}

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

Expand Down

0 comments on commit 9ca8077

Please sign in to comment.