F
Filament15mo ago
Khushbu

Upload Files on Specific Directory on S3 aws

I am using Filament v3 and trying to upload images on s3 bucket. FIle upload successfully in bucket. But I want to upload in specific folder in bucket. Can someone help me how can I achieve this? Also I am using Laravel Spatie Media Package.
Solution:
You can chain ->directory('foo') to the FileUpload component
Jump to solution
3 Replies
Solution
CaptainJoker
CaptainJoker15mo ago
You can chain ->directory('foo') to the FileUpload component
Khushbu
KhushbuOP15mo ago
@captainjoker Thanks for Answer
Khushbu
KhushbuOP15mo ago
but As I am using Laravel Spatie Media Plugin So there is a different way to achieve this https://spatie.be/docs/laravel-medialibrary/v10/advanced-usage/using-a-custom-directory-structure
Want results from more Discord servers?
Add your server