1
0
mirror of https://github.com/nokonoko/Uguu.git synced 2024-01-06 13:35:15 +00:00

Update api.php

remind me to never touch things when I'm not really concentrating on them, and especially when using a web editor.
This commit is contained in:
Jim Bäckström 2015-02-07 18:50:02 +02:00
parent 2aa7ef5678
commit bf1f987927

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']);
} }