Don't pass invalid streams to Imaginary

Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>

Update Imaginary.php

Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>

Update Imaginary.php

Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
pull/41120/head
Git'Fellow 2 years ago
parent 0753085e32
commit 974e86e618
  1. 3
      lib/private/Preview/Imaginary.php

@ -78,6 +78,9 @@ class Imaginary extends ProviderV2 {
// Object store
$stream = $file->fopen('r');
if (!$stream || !is_resource($stream) || feof($stream)) {
return null;
}
$httpClient = $this->service->newClient();

Loading…
Cancel
Save