Skip to content

Commit

Permalink
Merge pull request #97 from HiEventsDev/develop
Browse files Browse the repository at this point in the history
Make public files public in object storage
  • Loading branch information
daveearley committed Jul 14, 2024
2 parents c413f98 + f40424a commit eda3d19
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ public function store(UploadedFile $image, string $imageType): ImageStorageRespo
$path = $this->filesystemManager->disk($disk)->putFileAs(
path: strtolower($imageType),
file: $image,
name: $filename
name: $filename,
options: [
'visibility' => 'public',
],
);

if ($path === false) {
Expand Down
1 change: 1 addition & 0 deletions backend/config/filesystems.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
'endpoint' => env('AWS_ENDPOINT'),
'use_path_style_endpoint' => env('AWS_USE_PATH_STYLE_ENDPOINT', false),
'throw' => false,
'visibility' => 'public',
],
's3-private' => [
'driver' => 's3',
Expand Down

0 comments on commit eda3d19

Please sign in to comment.