From 09b91eae44daeea68c2af28521b8a72cd0303c1f Mon Sep 17 00:00:00 2001 From: "Eric Johansson (neku)" Date: Mon, 23 Feb 2015 19:12:20 +0100 Subject: [PATCH] Update api.php --- api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api.php b/api.php index e051867..ad5fc5d 100644 --- a/api.php +++ b/api.php @@ -6,7 +6,7 @@ if(isset($_GET['d'])) { switch ($_GET['d']) { case 'upload': //If no file is being posted, exit - if(empty($_FILES['file'])){ + if(empty($_FILES['file']['name'])){ exit('You fucked up, nothing to do.');} //Set the name value to the original filename $name = $_FILES['file']['name'];