1
0
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:
Eric Johansson (neku) 2015-02-07 19:19:38 +01:00
parent 35bc74300a
commit f6de5bc0bf

15
api.php
View File

@ -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;