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
b5ce16c266
commit
e26228930a
2
api.php
2
api.php
@ -7,7 +7,7 @@ if(isset($_GET['d'])) {
|
|||||||
case 'upload':
|
case 'upload':
|
||||||
//If no file is being posted, show the error page and exit.
|
//If no file is being posted, show the error page and exit.
|
||||||
if(empty($_FILES['file']['name'])){
|
if(empty($_FILES['file']['name'])){
|
||||||
include('error.php');
|
include_once('error.php');
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
//Set the name value to the original filename
|
//Set the name value to the original filename
|
||||||
|
Loading…
Reference in New Issue
Block a user