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.
3 Replies
Solution
You can chain ->directory('foo') to the FileUpload component
@captainjoker Thanks for Answer
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
Using a custom directory structure | laravel-medialibrary
laravel-medialibrary