File Upload not working on s3

What I'm trying to do: I want to store my uploads to AWS S3. What I did:
FILESYSTEM_DISK=s3
QUEUE_CONNECTION=database
FILAMENT_FILESYSTEM_DISK=s3
FILESYSTEM_DISK=s3
QUEUE_CONNECTION=database
FILAMENT_FILESYSTEM_DISK=s3
Forms\Components\FileUpload::make('cover_image')
->image()
->directory('events')
->required(),
Forms\Components\FileUpload::make('cover_image')
->image()
->directory('events')
->required(),
The Issue The upload works but when submitted the file is not appearing the livewire-tmp appears on s3 but once hit submit it disappears and nothing is stored. the filename is being stored but the file is not existent on the s3 thus making it not appear
No description
2 Replies
EdmerKun
EdmerKunOP13mo ago
solved. I just need to add ->visibility('private')
Jr.Pikong
Jr.Pikong13mo ago
or if you have problem with cors you must add cors config in s3 Bucker like : [ { "AllowedHeaders": [ "*" ], "AllowedMethods": [ "HEAD", "GET", "PUT", "POST", "DELETE" ], "AllowedOrigins": [ "*" ], "ExposeHeaders": [] } ]
Want results from more Discord servers?
Add your server