summaryrefslogtreecommitdiffstats
path: root/application/controllers/file.php
diff options
context:
space:
mode:
Diffstat (limited to 'application/controllers/file.php')
-rw-r--r--application/controllers/file.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/application/controllers/file.php b/application/controllers/file.php
index fb219f67f..f1a4d6c08 100644
--- a/application/controllers/file.php
+++ b/application/controllers/file.php
@@ -164,6 +164,12 @@ class File extends CI_Controller {
function do_upload()
{
$data = array();
+
+ if ($this->uri->segment(3)) {
+ $this->var->cli_client = true;
+ $this->var->view_dir = "file_plaintext";
+ }
+
$extension = $this->input->post('extension');
if(!isset($_FILES['file']) || $_FILES['file']['error'] !== 0) {
$this->output->set_status_header(400);