X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/f139cded789908efce3ac2ed1be26b947df647db..refs/pull/5280/head:/app/Config/filesystems.php diff --git a/app/Config/filesystems.php b/app/Config/filesystems.php index 4d59ba919..1319c8886 100644 --- a/app/Config/filesystems.php +++ b/app/Config/filesystems.php @@ -30,20 +30,23 @@ return [ 'disks' => [ 'local' => [ - 'driver' => 'local', - 'root' => public_path(), + '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/'), + '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, ], ],