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
ff3c110235
commit
3ce12daea4
10
api.php
10
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');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user