Skip to content

Commit

Permalink
Merge pull request #38081 from nextcloud/backport/37148/stable26
Browse files Browse the repository at this point in the history
[stable26] increase imaginary timeouts as for big files the processing could take very long
  • Loading branch information
szaimen authored May 4, 2023
2 parents 32f9b8b + 7f61d9b commit db87601
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/private/Preview/Imaginary.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(), [
Expand Down

0 comments on commit db87601

Please sign in to comment.