Media Library - Download uploaded file again (i.e. pdf)
Ahoy there
First of all Kudos to the Project: Awesome!
I am experimenting a little with what is possible, views, plugins etc. and created a Resource, installed spatie media-library and the filament plugin.
Now, the edit view looks fine, I can upload and remove files, files are stored, images I can directly see.
But I also uploaded a pdf. I can see the name, I could remove it, I could upload more...
...but how could I open it again?
Do I have a create a new view for it? Do I have to create a specific field?
I was looking around and searching a little but did not find this case or am asking the wrong question.
Thanks a lot for any hint in the right direction in advance
Have a nice Sunday ^^
First of all Kudos to the Project: Awesome!
I am experimenting a little with what is possible, views, plugins etc. and created a Resource, installed spatie media-library and the filament plugin.
Now, the edit view looks fine, I can upload and remove files, files are stored, images I can directly see.
But I also uploaded a pdf. I can see the name, I could remove it, I could upload more...
...but how could I open it again?
Do I have a create a new view for it? Do I have to create a specific field?
I was looking around and searching a little but did not find this case or am asking the wrong question.
Thanks a lot for any hint in the right direction in advance
Have a nice Sunday ^^

Solution
Don't know if I understand you will. But, to allow opening or downloading files, you can use
->openable() and ->downloadable(). They'll display a button for open the file and another for download it.