From ae460f4afc99ab5ba724519445925f354cee2dde Mon Sep 17 00:00:00 2001 From: lukmzig Date: Wed, 11 Dec 2024 11:34:20 +0100 Subject: [PATCH] fix: return original file name not the new one --- src/Asset/Service/UploadService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Asset/Service/UploadService.php b/src/Asset/Service/UploadService.php index 636bc675e..543f2e2e4 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(