diff --git a/lib/private/Preview/Imaginary.php b/lib/private/Preview/Imaginary.php index 962e5663b3902..ed8b9eaa83849 100644 --- a/lib/private/Preview/Imaginary.php +++ b/lib/private/Preview/Imaginary.php @@ -143,6 +143,8 @@ public function getCroppedThumbnail(File $file, int $maxX, int $maxY, bool $crop 'content-type' => $file->getMimeType(), 'body' => $stream, 'nextcloud' => ['allow_local_address' => true], + 'timeout' => 120, + 'connect_timeout' => 3, ]); } catch (\Exception $e) { $this->logger->error('Imaginary preview generation failed: ' . $e->getMessage(), [