mirror of
https://github.com/nextcloud/server.git
synced 2025-10-26 19:21:34 +00:00
use the fileinfo to check if we have a valid file
This commit is contained in:
parent
f4d180ee5c
commit
52d4495793
@ -375,7 +375,7 @@ class Preview {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!$this->fileView->file_exists($file)) {
|
||||
if (!$this->getFileInfo() instanceof FileInfo) {
|
||||
\OCP\Util::writeLog('core', 'File:"' . $file . '" not found', \OCP\Util::DEBUG);
|
||||
|
||||
return false;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user