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
7835f2ba92
commit
0f429b0662
7
api.php
7
api.php
@ -11,10 +11,11 @@ if(isset($_GET['d'])) {
|
||||
if(!empty($_POST['name'])){
|
||||
$name = $_POST['name'];}
|
||||
//If value contains anything, keep original filename
|
||||
if(!empty($_POST['originalname'])){
|
||||
$name = $_FILES['file']['name'];}
|
||||
if(!empty($_POST['randomname'])){
|
||||
$name = $_FILES['file']['name'];
|
||||
$arg = 'rand';}
|
||||
//Call the save function which sends the file+name
|
||||
save_file($_FILES['file']['tmp_name'], $name);
|
||||
save_file($_FILES['file']['tmp_name'], $name, $arg);
|
||||
break;
|
||||
case 'extend-time':
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user