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:
parent
2aa7ef5678
commit
bf1f987927
2
api.php
2
api.php
@ -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']);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user