Merge pull request #47866 from nextcloud/backport/47858/stable28

pull/48066/head
John Molakvoæ 2024-09-16 11:01:47 +07:00 committed by GitHub
commit c0eff12bff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

@ -88,6 +88,9 @@ abstract class ProviderV2 implements IProviderV2 {
$absPath = \OC::$server->getTempManager()->getTemporaryFile();
$content = $file->fopen('r');
if ($content === false) {
return false;
}
if ($maxSize) {
$content = stream_get_contents($content, $maxSize);