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(); }