Merge pull request #38081 from nextcloud/backport/37148/stable26

[stable26] increase imaginary timeouts as for big files the processing could take very long
This commit is contained in:
Simon L 2023-05-05 00:37:58 +02:00 committed by GitHub
commit db876019c4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -143,6 +143,8 @@ class Imaginary extends ProviderV2 {
'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(), [