X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/de5322288c253e87dcfd0594211333a406632fa1..refs/pull/5280/head:/app/Config/filesystems.php diff --git a/app/Config/filesystems.php b/app/Config/filesystems.php index 493d53bfa..1319c8886 100644 --- a/app/Config/filesystems.php +++ b/app/Config/filesystems.php @@ -33,17 +33,20 @@ return [ 'driver' => 'local', 'root' => public_path(), 'visibility' => 'public', + 'throw' => true, ], 'local_secure_attachments' => [ 'driver' => 'local', 'root' => storage_path('uploads/files/'), + 'throw' => true, ], 'local_secure_images' => [ 'driver' => 'local', 'root' => storage_path('uploads/images/'), 'visibility' => 'public', + 'throw' => true, ], 's3' => [ @@ -54,6 +57,8 @@ return [ 'bucket' => env('STORAGE_S3_BUCKET', 'your-bucket'), 'endpoint' => env('STORAGE_S3_ENDPOINT', null), 'use_path_style_endpoint' => env('STORAGE_S3_ENDPOINT', null) !== null, + 'throw' => true, + 'stream_reads' => false, ], ],