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
35bc74300a
commit
f6de5bc0bf
15
api.php
15
api.php
@ -4,13 +4,16 @@ if(isset($_GET['d'])) {
|
||||
switch ($_GET['d']) {
|
||||
|
||||
case 'upload':
|
||||
$name = $_FILES['file']['name'];
|
||||
if(!empty($_POST['name'])){
|
||||
$name = $_POST['name'];
|
||||
}
|
||||
save_file($_FILES['file']['tmp_name'], $name);
|
||||
break;
|
||||
|
||||
case 'upload-sharex':
|
||||
|
||||
if(!empty($_POST['name'])){
|
||||
save_file($_FILES["file"]["tmp_name"], $_POST['name']);
|
||||
}else{
|
||||
save_file($_FILES["file"]["tmp_name"], $_FILES["file"]["name"]);
|
||||
}
|
||||
break;
|
||||
break;
|
||||
|
||||
case 'extend-time':
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user