forked from gitbot/uguu
Update api.php
This commit is contained in:
parent
b628f7502b
commit
64abd972f3
2
api.php
2
api.php
@ -13,8 +13,6 @@ if(isset($_GET['d'])) {
|
||||
//If value contains anything, keep original filename
|
||||
if(!empty($_POST['originalname'])){
|
||||
$name = $_FILES['file']['name'];}
|
||||
//Remove any whitespace from name
|
||||
$name = preg_replace('/\s+/', '', $name);
|
||||
//Call the save function which sends the file+name
|
||||
save_file($_FILES['file']['tmp_name'], $name);
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user