Skip to content

Commit

Permalink
fix: return original file name not the new one (#632)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukmzig authored Dec 11, 2024
1 parent 283adac commit 06358d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Asset/Service/UploadService.php
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ private function getUpdatedFileName(
$newExtension = pathinfo($newFileName, PATHINFO_EXTENSION);
$originalExtension = pathinfo($originalFileName, PATHINFO_EXTENSION);
if ($newExtension === $originalExtension) {
return $newFileName;
return $originalFileName;
}

$fileName = preg_replace(
Expand Down

0 comments on commit 06358d2

Please sign in to comment.