Skip to content
This repository has been archived by the owner on Feb 10, 2019. It is now read-only.

Commit

Permalink
Prepare to merge
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeyco committed Dec 12, 2012
1 parent a6937e8 commit 0c1a224
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion classes/Kohana/Controller/Filebrowser.php
Expand Up @@ -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);
Expand Down

0 comments on commit 0c1a224

Please sign in to comment.