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
CaptainJoker2y ago
You can chain ->directory('foo') to the FileUpload component
Khushbu
KhushbuOP2y ago
@captainjoker Thanks for Answer
Khushbu
KhushbuOP2y 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

Did you find this page helpful?