new API feature: pictshare URL to info about the image

This commit is contained in:
Christian Haschek
2015-11-05 18:57:04 +01:00
parent 414b09dcba
commit 11afcd780b
2 changed files with 4 additions and 4 deletions

View File

@@ -7,7 +7,7 @@ class PictshareModel extends Model
return array('status'=>'ok');
}
function getSizeOfURL($url)
function getURLInfo($url)
{
$url = rawurldecode($url);
$data = $this->urlToData($url);
@@ -22,7 +22,7 @@ class PictshareModel extends Model
if(file_exists($path))
{
$byte = filesize($path);
return array('status'=>'ok','size'=>$byte,'humansize'=>$html->renderSize($byte));
return array('status'=>'ok','hash'=>$hash,'cachename'=>$file,'size'=>$byte,'humansize'=>$html->renderSize($byte));
}
else