document the api filedata call

This commit is contained in:
zotlabs
2016-12-07 15:22:26 -08:00
parent 346a48d4c2
commit 07706b41f4
3 changed files with 70 additions and 4 deletions

View File

@@ -157,9 +157,9 @@
$start = (($_REQUEST['start']) ? intval($_REQUEST['start']) : 0);
$length = (($_REQUEST['length']) ? intval($_REQUEST['length']) : 0);
$r = q("select * from attach where uid = %d and hash = '%s' limit 1",
$r = q("select * from attach where uid = %d and hash like '%s' limit 1",
intval(api_user()),
dbesc($_REQUEST['file_id'])
dbesc($_REQUEST['file_id'] . '%')
);
if($r) {
$ptr = $r[0];