From 21f62592671029c65cf9405de787e06bb3f78a65 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Tue, 27 Sep 2016 19:20:05 +0200 Subject: c/file: Remove upload detection This only existed for curl based uploading which is no longer supported Signed-off-by: Florian Pritz --- application/controllers/file/file_default.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/application/controllers/file/file_default.php b/application/controllers/file/file_default.php index fe795ad19..46caf3a23 100644 --- a/application/controllers/file/file_default.php +++ b/application/controllers/file/file_default.php @@ -26,9 +26,7 @@ class File_default extends MY_Controller { // Try to guess what the user would like to do. $id = $this->uri->segment(1); - if (!empty($_FILES)) { - $this->do_upload(); - } elseif (strpos($id, "m-") === 0 && $this->mmultipaste->id_exists($id)) { + if (strpos($id, "m-") === 0 && $this->mmultipaste->id_exists($id)) { $this->_download(); } elseif ($id != "file" && $this->mfile->id_exists($id)) { $this->_download(); -- cgit v1.2.3-24-g4f1b