]> jfr.im git - uguu.git/commitdiff
Update api.php
authorEric Johansson (neku) <redacted>
Sat, 7 Feb 2015 18:28:24 +0000 (19:28 +0100)
committerEric Johansson (neku) <redacted>
Sat, 7 Feb 2015 18:28:24 +0000 (19:28 +0100)
api.php

diff --git a/api.php b/api.php
index b867dfc6f2064cc972a95c563523af99968b529a..3697e4853bbd1115cb0e1ab2532a8d465e3e6df7 100644 (file)
--- 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');
 }