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:
parent
924297975e
commit
2aa7ef5678
4
api.php
4
api.php
@ -8,8 +8,8 @@ if(isset($_GET['d'])) {
|
||||
if(!empty($_POST['name'])){
|
||||
if(isset($_POST['autoext'])){
|
||||
$oftheworld = explode(".", $_FILES["file"]["name"]);
|
||||
$ext = end($oftheworld);
|
||||
save_file($_FILES["file"]["tmp_name"], $_POST['name'] . $ext);
|
||||
$ext = end($oftheworld);
|
||||
save_file($_FILES["file"]["tmp_name"], "$_POST['name'].$ext");
|
||||
}else{
|
||||
save_file($_FILES["file"]["tmp_name"], $_POST['name']);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user