-
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
Product image failure when importing through CSV #20098 #20127
Product image failure when importing through CSV #20098 #20127
Conversation
Hi @irajneeshgupta. Thank you for your contribution
For more details, please, review the Magento Contributor Assistant documentation |
@@ -180,9 +180,9 @@ public function move($fileName, $renameFileOff = false) | |||
} | |||
|
|||
$fileName = preg_replace('/[^a-z0-9\._-]+/i', '', $fileName); | |||
$filePath = $this->_directory->getRelativePath($filePath . $fileName); | |||
$tempPath = $this->_directory->getRelativePath($filePath . $fileName); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please use kind of "$relativePath" variable name? Its more clear then what is it doing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nuzil
Yes sure
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nuzil
I have updated it in latest commit.
Thanks.
d7d5a94
to
7f4dffd
Compare
Hi @nuzil, thank you for the review. |
Hi @irajneeshgupta, thank you for your contribution! |
Hi @irajneeshgupta. Thank you for your contribution. |
Description (*)
Remote image file import by csv , it was failed because
$filePath
variable was overridden incorrectly inUploader.php
public function move($fileName, $renameFileOff = false)
.Updated
$filePath
to$relativePath
in case of remote URL image.Fixed Issues (if relevant)
Manual testing scenarios (*)
Contribution checklist (*)