-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't work customer Image attribute programmatically #19983
Comments
Hi @cygnetampatel. Thank you for your report.
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
where @cygnetampatel do you confirm that you was able to reproduce the issue on vanilla Magento instance following steps to reproduce?
|
Hi @shikhamis11. Thank you for working on this issue.
|
Hi @engcom-backlog-nazar. Thank you for working on this issue.
|
@engcom-backlog-nazar Thank you for verifying the issue. Based on the provided information internal tickets |
Hi @Nazar65. Thank you for working on this issue.
|
Hi @cygnetampatel. Thank you for your report.
The fix will be available with the upcoming 2.3.2 release. |
Hi @cygnetampatel. Thank you for your report. The fix will be available with the upcoming 2.2.9 release. |
Preconditions (*)
Steps to reproduce (*)
Expected result (*)
Actual result (*)
Issue In this file (*)
An issue in the if a condition "Magento\Eav\Model\Attribute\Data\File"
protected function _validateByRules($value)
{
if (!empty($value['tmp_name']) && !is_uploaded_file($value['tmp_name'])) {
return [__('"%1" is not a valid file.', $label)];
}
return [];
}
Acctually Image first of upload in temp folder then after move into accordinglly.
according to the condition if a file exists in temp folder it's throw error.
Resolve the issue(*)
protected function _validateByRules($value)
{
if (empty($value['tmp_name']) && is_uploaded_file($value['tmp_name'])) {
return [__('"%1" is not a valid file.', $label)];
}
return [];
}
The text was updated successfully, but these errors were encountered: