diff --git a/src/Pecee/Http/Input/Input.php b/src/Pecee/Http/Input/Input.php index 4f0f7af..e0fafaa 100644 --- a/src/Pecee/Http/Input/Input.php +++ b/src/Pecee/Http/Input/Input.php @@ -87,6 +87,10 @@ class Input { if($item !== null) { + if($item instanceof InputFile) { + return $item; + } + if (is_array($item->getValue())) { return ($key !== null && isset($item->getValue()[$key])) ? $item->getValue()[$key] : $item->getValue(); }