From a9b0261fe37ca87976f3ab283348d2cdb777d39d Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Fri, 27 Dec 2024 10:40:48 +0700 Subject: [PATCH] refactor: run cs fix --- system/HTTP/Files/UploadedFile.php | 1 + 1 file changed, 1 insertion(+) diff --git a/system/HTTP/Files/UploadedFile.php b/system/HTTP/Files/UploadedFile.php index a566fa7f67c7..c17a9e5af8e5 100644 --- a/system/HTTP/Files/UploadedFile.php +++ b/system/HTTP/Files/UploadedFile.php @@ -303,6 +303,7 @@ public function getTempName(): string public function getExtension(): string { $guessExtension = $this->guessExtension(); + return $guessExtension !== '' ? $guessExtension : $this->getClientExtension(); }