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>
This commit is contained in:
Git'Fellow 2023-10-25 19:47:03 +02:00
parent 0753085e32
commit 974e86e618

View file

@ -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();