From afe624d3e34b698306688c2979e6c5dad596aa37 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(-) (limited to 'application/controllers') 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