]> BookStack Code Mirror - bookstack/commitdiff
Uploads: Explicitly disabled s3 streaming in config 4758/head
authorDan Brown <redacted>
Mon, 15 Jan 2024 13:36:04 +0000 (13:36 +0000)
committerDan Brown <redacted>
Mon, 15 Jan 2024 13:36:04 +0000 (13:36 +0000)
This was the default option anyway, just adding here for
better visibility of this being set.
Can't enable without issues as the app will attempt to seek which does
not work for these streams. Also have not tested on non-s3, s3-like
systems.

app/Config/filesystems.php

index e6ae0fed364883c35d10ee02a4b7bc68c8ea0243..1319c8886f63bf4bf5312b90fadf242ee084599f 100644 (file)
@@ -58,6 +58,7 @@ return [
             'endpoint'                => env('STORAGE_S3_ENDPOINT', null),
             'use_path_style_endpoint' => env('STORAGE_S3_ENDPOINT', null) !== null,
             'throw'                   => true,
+            'stream_reads'            => false,
         ],
 
     ],