Merge pull request #47868 from nextcloud/backport/47858/stable30

This commit is contained in:
John Molakvoæ 2024-09-15 22:52:11 +02:00 committed by GitHub
commit f71f690398
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -71,6 +71,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);