From 60a45dbb685eb3b810dcced4820afe9d1f1ffe2d Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Sun, 25 May 2014 15:15:59 -0400 Subject: Improve file upload --- app/Model/File.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/Model') diff --git a/app/Model/File.php b/app/Model/File.php index 41ecfba1..70b87b1b 100644 --- a/app/Model/File.php +++ b/app/Model/File.php @@ -159,7 +159,7 @@ class File extends Base if (@move_uploaded_file($uploaded_filename, self::BASE_PATH.$destination_filename)) { - $this->create( + return $this->create( $task_id, $original_filename, $destination_filename, -- cgit v1.2.3