Skip to content

Commit 4faf312

Browse files
authored
Merge pull request #4 from rootinc/bug/file-visibility
Remove "public-read" from local/public/S3
2 parents 345c2ce + a3d4a38 commit 4faf312

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/FileModel.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,7 @@ public static function upload(UploadedFile $file, $relative_directory = null, $p
132132
: '');
133133

134134
// Public or private
135-
$is_s3 = $filesystem_driver === 's3';
136-
$visibility_setting = !$is_s3 ? 'public' : 'public-read';
137-
$visibility = $public ? $visibility_setting : 'private';
135+
$visibility = $public ? 'public' : 'private';
138136

139137
return $disk->putFileAs($directory, $file, $file->getClientOriginalName(), $visibility);
140138
}

0 commit comments

Comments
 (0)