Update api.php

This commit is contained in:
Eric Johansson (neku) 2015-02-23 19:12:20 +01:00
parent e8d1d3f51e
commit 09b91eae44
1 changed files with 1 additions and 1 deletions

View File

@ -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'];