Skip to content

Commit b030dbb

Browse files
committed
disable retain visibility on r2
1 parent 86eae44 commit b030dbb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Illuminate/Filesystem/FilesystemManager.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,10 @@ protected function createFlysystem(FlysystemAdapter $adapter, array $config)
324324
$adapter = new PathPrefixedAdapter($adapter, $config['prefix']);
325325
}
326326

327+
if (str_contains($config['endpoint'] ?? '', 'r2.cloudflarestorage.com')) {
328+
$config['retain_visibility'] = false;
329+
}
330+
327331
return new Flysystem($adapter, Arr::only($config, [
328332
'directory_visibility',
329333
'disable_asserts',

0 commit comments

Comments
 (0)