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
9539b2959c
commit
3c9440099e
3
api.php
3
api.php
@ -5,6 +5,9 @@ if(isset($_GET['d'])) {
|
|||||||
include_once('includes/core.php');
|
include_once('includes/core.php');
|
||||||
switch ($_GET['d']) {
|
switch ($_GET['d']) {
|
||||||
case 'upload':
|
case 'upload':
|
||||||
|
//If no file is being posted, exit
|
||||||
|
if(empty($_FILES['file'])){
|
||||||
|
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'];
|
||||||
$arg = 'custom_original';
|
$arg = 'custom_original';
|
||||||
|
Loading…
Reference in New Issue
Block a user