diff --git a/api.php b/api.php index b867dfc..3697e48 100644 --- a/api.php +++ b/api.php @@ -9,12 +9,12 @@ if(isset($_GET['d'])) { if(!empty($_POST['name'])){ $name = $_POST['name'];} + if(!empty($_POST['autoext'])){ + // + } + save_file($_FILES['file']['tmp_name'], $name); break; - - case 'upload-sharex': - - break; case 'extend-time': break; @@ -23,5 +23,5 @@ if(isset($_GET['d'])) { break; } }else{ - exit('Please provide a valid argument. Example: curl -i -F name=test.jpg -F file=@localfile.jpg http://uguu.se/api.php?d=upload'); + header('Location: http://uguu.se'); }