SpatieMediaLibraryFileUploade

My SpatieMediaLibraryFileUpload is not saving to correct path in s3.
SpatieMediaLibraryFileUpload::make('media')
->disk('s3')
->directory('horse-galleries')
->multiple()
SpatieMediaLibraryFileUpload::make('media')
->disk('s3')
->directory('horse-galleries')
->multiple()
3 Replies
Dan Harrin
Dan Harrin2y ago
media library doesnt use the directory it generates the directory based on the id of the media
wyChoong
wyChoong2y ago
Define a disk
rajul
rajul2y ago
You can use collection
Want results from more Discord servers?
Add your server