video: find file in user folder

pull/221/head
Varun Patil 2022-11-08 23:02:32 -08:00
parent 3d35741ed0
commit dc89f0e95b
1 changed files with 1 additions and 1 deletions

View File

@ -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);
} }