]>
jfr.im git - uguu.git/blob - api.php
2 if(isset($_GET['d'])) {
3 include_once('core.php');
7 $name = $_FILES['file']['name'];
8 if(!empty($_POST['name'])){
9 $name = $_POST['name'];
11 save_file($_FILES['file']['tmp_name'], $name);
21 exit('Please provide a valid argument. Example: curl -i -F name=test.jpg -F file=@localfile.jpg http://uguu.se/api.php?d=upload');
25 exit('Please provide a valid argument. Example: curl -i -F name=test.jpg -F file=@localfile.jpg http://uguu.se/api.php?d=upload');