From f05148503e95a77feff5e7ff7f3a1b5e82dfc97f Mon Sep 17 00:00:00 2001 From: Simon Date: Wed, 4 Jul 2012 22:56:58 +0300 Subject: [PATCH] Input::has_file was not working properly. This one should work perfect :) --- laravel/input.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/laravel/input.php b/laravel/input.php index 6a28b17f..0de7b759 100644 --- a/laravel/input.php +++ b/laravel/input.php @@ -205,7 +205,7 @@ public static function file($key = null, $default = null) */ public static function has_file($key) { - return ! is_null(static::file("{$key}.tmp_name")); + return strlen(static::file("{$key}.tmp_name", "")) > 0; } /**