From f0275962119a57ebdeaef3dbf859019caf026e21 Mon Sep 17 00:00:00 2001 From: thelsa Date: Fri, 7 Jun 2019 22:01:04 +0800 Subject: [PATCH] upload file to upload/ instead of root --- Pass-18/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Pass-18/index.php b/Pass-18/index.php index 774bdd5..4a9a7db 100644 --- a/Pass-18/index.php +++ b/Pass-18/index.php @@ -10,7 +10,7 @@ require_once("./myupload.php"); $imgFileName =time(); $u = new MyUpload($_FILES['upload_file']['name'], $_FILES['upload_file']['tmp_name'], $_FILES['upload_file']['size'],$imgFileName); - $status_code = $u->upload(UPLOAD_PATH); + $status_code = $u->upload(UPLOAD_PATH.'/'); switch ($status_code) { case 1: $is_upload = true;