diff --git a/system/input.php b/system/input.php index f5d59a05..0cf4a223 100644 --- a/system/input.php +++ b/system/input.php @@ -78,7 +78,7 @@ public static function file($key = null, $default = null) { list($file, $key) = explode('.', $key); - return (isset($_FILES[$file][$key])) ? $_FILES[$file][$key] : $default; + return Arr::get($_FILES[$file], $key, $default); } return Arr::get($_FILES, $key, $default);