diff --git a/api.php b/api.php index 2f59766..f83c61a 100644 --- a/api.php +++ b/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;