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:20:34 +01:00
parent f6de5bc0bf
commit ff3c110235

View File

@ -5,9 +5,10 @@ if(isset($_GET['d'])) {
case 'upload':
$name = $_FILES['file']['name'];
if(!empty($_POST['name'])){
$name = $_POST['name'];
}
$name = $_POST['name'];}
save_file($_FILES['file']['tmp_name'], $name);
break;