From bf069c2d42be00194048f53082127aafbc6c01b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20Sessing=C3=B8?= Date: Wed, 1 Feb 2017 07:51:35 +0100 Subject: [PATCH] Fixed getExtension method in InputFile retuning empty value. --- src/Pecee/Http/Input/InputFile.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Pecee/Http/Input/InputFile.php b/src/Pecee/Http/Input/InputFile.php index 6ec141b..7ad4744 100644 --- a/src/Pecee/Http/Input/InputFile.php +++ b/src/Pecee/Http/Input/InputFile.php @@ -127,7 +127,7 @@ class InputFile implements IInputItem */ public function getExtension() { - return pathinfo($this->getName(), PATHINFO_EXTENSION); + return pathinfo($this->getFilename(), PATHINFO_EXTENSION); } /**