Skip to content

Commit c9c8a5a

Browse files
committed
r2 backport
1 parent 1fa6b1f commit c9c8a5a

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
@@ -316,6 +316,10 @@ protected function createFlysystem(FlysystemAdapter $adapter, array $config)
316316
$adapter = new PathPrefixedAdapter($adapter, $config['prefix']);
317317
}
318318

319+
if (str_contains($config['endpoint'] ?? '', 'r2.cloudflarestorage.com')) {
320+
$config['retain_visibility'] = false;
321+
}
322+
319323
return new Flysystem($adapter, Arr::only($config, [
320324
'directory_visibility',
321325
'disable_asserts',

0 commit comments

Comments
 (0)