From 0c1a22429b7fe67e6fa6b14baf83091339cb8e8f Mon Sep 17 00:00:00 2001 From: Alexeyco <6425762@gmail.com> Date: Wed, 12 Dec 2012 10:54:02 +0400 Subject: [PATCH] Prepare to merge --- classes/Kohana/Controller/Filebrowser.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/classes/Kohana/Controller/Filebrowser.php b/classes/Kohana/Controller/Filebrowser.php index 62e5cf5..ef7b843 100644 --- a/classes/Kohana/Controller/Filebrowser.php +++ b/classes/Kohana/Controller/Filebrowser.php @@ -190,9 +190,11 @@ public function action_upload() 'error' => __('FIle :file already exists in :path', array( ':file' => $_FILES['Filedata']['name'], ':path' => $this->_path - )))); + )))); } + // TODO: check file type + try { Upload::save($_FILES['Filedata'], $_FILES['Filedata']['name'], DOCROOT.$this->_directory.$this->_path);