SPATIE MEDIALIBRARY PDF FILE UPLOAD
:fi: Hi to all the filament dev. I just want to know on how I can create a spatiemedia file upload for pdf file upload only. And how will set this up the storage. I'm still a beginner so bare with me. Thank you so much.
2 Replies
What whas wrong with the first question? https://discord.com/channels/883083792112300104/1206774571857092669
But you need to take a look at https://filamentphp.com/docs/3.x/forms/fields/file-upload#file-type-validation and yes this is not the
SpatieMediaLibraryFileUpload
but can be used as stated here https://filamentphp.com/plugins/filament-spatie-media-library#form-component The media library file upload supports all the customization options of the original file upload component.
For file storage what do you want to know?It works but after uploading the file, pdf file is not available to view. What should I do to make it viewable?