Skip to content

Commit

Permalink
Fixed php error when uploading image in Magento 2.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
roma84 committed Nov 23, 2020
1 parent 9f141b0 commit 1098bee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Controller/Adminhtml/Index/Save.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public function execute()
: '';
if (isset($data["image"][0]['tmp_name'])) {
try {
$this->imageUploader->moveFileFromTmp($imageName);
$this->imageUploader->moveFileFromTmp($imageName, true);
} catch (\Exception $e) { }
}
}
Expand Down

0 comments on commit 1098bee

Please sign in to comment.