File Uploads with Laravel Vapor

Hey all - I am able to upload a file to a S3 bucket locally. However, when I try it in staging the file is not saved to S3. The logo field value in the database updates to something new, but the file is never saved.
FileUpload::make('logo')
->disk('s3')
->directory('logos')
->visibility('public'),
FileUpload::make('logo')
->disk('s3')
->directory('logos')
->visibility('public'),
I have the storage bucket properly attached to the environment. Any ideas what's going on here? Thanks!
2 Replies
bwurtz999
bwurtz999OP2y ago
For anyone who finds this later, I had to modify the permissions on my S3 bucket. Works fine now
阿lam
阿lam16mo ago
you mean set the bucket policy ?
Want results from more Discord servers?
Add your server