mirror of
https://github.com/nokonoko/Uguu.git
synced 2024-01-06 13:35:15 +00:00
Update api.php
This commit is contained in:
parent
e8d1d3f51e
commit
09b91eae44
2
api.php
2
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'];
|
||||
|
Loading…
Reference in New Issue
Block a user