video: find file in user folder
parent
3d35741ed0
commit
dc89f0e95b
|
@ -54,7 +54,7 @@ class VideoController extends ApiBase
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get file
|
// Get file
|
||||||
$files = $this->rootFolder->getById($fileid);
|
$files = $this->rootFolder->getUserFolder($user->getUID())->getById($fileid);
|
||||||
if (count($files) === 0) {
|
if (count($files) === 0) {
|
||||||
return new JSONResponse(['message' => 'File not found'], Http::STATUS_NOT_FOUND);
|
return new JSONResponse(['message' => 'File not found'], Http::STATUS_NOT_FOUND);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue