How to save the media type while uploading? Spatie media library

I added spatie media library plugin to my project And for now this is how i do it: SpatieMediaLibraryFileUpload::make('attachments') ->label(__('portal.attachments')) ->multiple() ->reorderable() ->collection('attachments') What i need to do : Save the media type while uploading, so i know later on the type that is uploaded (image-display, PDF-download etc..) Im not sure what the best approach to this should be
1 Reply
ritos123
ritos123OP8mo ago
Solved, i can just check for mime_type when looking for the media i thought i needed something extra
Want results from more Discord servers?
Add your server