© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
10 replies
NeA

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 ^^
image.png
Solution
Don't know if I understand you will. But, to allow opening or downloading files, you can use
->openable()
->openable()
and
->downloadable()
->downloadable()
. They'll display a button for open the file and another for download it.
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

View Uploaded PDF File
FilamentFFilament / ❓┊help
2y ago
Spatie Media Library File Upload replacing every uploaded file
FilamentFFilament / ❓┊help
3y ago
Spatie media library file name in form when uploaded
FilamentFFilament / ❓┊help
3y ago
How to Download a Pdf File
FilamentFFilament / ❓┊help
3y ago