Skip to content

Commit

Permalink
Merge pull request #47866 from nextcloud/backport/47858/stable28
Browse files Browse the repository at this point in the history
  • Loading branch information
skjnldsv authored Sep 16, 2024
2 parents 1e87c3f + 704310d commit c0eff12
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/private/Preview/ProviderV2.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ protected function getLocalFile(File $file, int $maxSize = null) {
$absPath = \OC::$server->getTempManager()->getTemporaryFile();

$content = $file->fopen('r');
if ($content === false) {
return false;
}

if ($maxSize) {
$content = stream_get_contents($content, $maxSize);
Expand Down

0 comments on commit c0eff12

Please sign in to comment.