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:
Jim Bäckström 2015-02-07 18:35:05 +02:00
parent 924297975e
commit 2aa7ef5678

View File

@ -9,7 +9,7 @@ if(isset($_GET['d'])) {
if(isset($_POST['autoext'])){ if(isset($_POST['autoext'])){
$oftheworld = explode(".", $_FILES["file"]["name"]); $oftheworld = explode(".", $_FILES["file"]["name"]);
$ext = end($oftheworld); $ext = end($oftheworld);
save_file($_FILES["file"]["tmp_name"], $_POST['name'] . $ext); save_file($_FILES["file"]["tmp_name"], "$_POST['name'].$ext");
}else{ }else{
save_file($_FILES["file"]["tmp_name"], $_POST['name']); save_file($_FILES["file"]["tmp_name"], $_POST['name']);
} }