Update api.php
This commit is contained in:
parent
e8d1d3f51e
commit
09b91eae44
1 changed files with 1 additions and 1 deletions
2
api.php
2
api.php
|
@ -6,7 +6,7 @@ if(isset($_GET['d'])) {
|
||||||
switch ($_GET['d']) {
|
switch ($_GET['d']) {
|
||||||
case 'upload':
|
case 'upload':
|
||||||
//If no file is being posted, exit
|
//If no file is being posted, exit
|
||||||
if(empty($_FILES['file'])){
|
if(empty($_FILES['file']['name'])){
|
||||||
exit('You fucked up, nothing to do.');}
|
exit('You fucked up, nothing to do.');}
|
||||||
//Set the name value to the original filename
|
//Set the name value to the original filename
|
||||||
$name = $_FILES['file']['name'];
|
$name = $_FILES['file']['name'];
|
||||||
|
|
Loading…
Add table
Reference in a new issue