diff --git a/src/Asset/Service/UploadService.php b/src/Asset/Service/UploadService.php index 636bc675..543f2e2e 100644 --- a/src/Asset/Service/UploadService.php +++ b/src/Asset/Service/UploadService.php @@ -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(