Skip to content

Commit

Permalink
Return the complete category image path
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentMarmiesse committed Oct 22, 2021
1 parent 462127f commit 1f791a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Model/Import/Category.php
Original file line number Diff line number Diff line change
Expand Up @@ -1298,7 +1298,7 @@ protected function uploadMediaFiles($fileName)
{
try {
$res = $this->getUploader()->move($fileName);
return $res['file'];
return '/media/catalog/category' . $res['file'];
} catch (\Exception $e) {
return '';
}
Expand Down

0 comments on commit 1f791a4

Please sign in to comment.