Add update_image and download_image

This commit is contained in:
yogg@epsina.com 2016-01-31 18:28:09 +01:00
parent 0db8d0ebbe
commit 6e7c71db77
2 changed files with 35 additions and 10 deletions
server

View file

@ -76,4 +76,17 @@ echo "</br>";
//$file_name = "/home/yogg/Downloads/TinyCore-6.4.1.iso";
//$image->upload_image($id_image, $file_name);
//$image->download_image($id_image);
/*
$opt_update = Array();
$opt_update['name'] = "TestUpdate";
$opt_update['visibility'] = 'public';
$opt_update['minDisk'] = 1;
$opt_update['protected'] = false;
$opt_update['minRam'] = 15;
$update = $image->update_image($id_image, $opt_update);
echo $update->name;
*/
?>