© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
3 replies
gladjanus43

file download for private files

I have a FileUpload field in my form. It uploads to the local driver because the uploaded files are buying invoices which should only be downloadable and viewable by logged in users.

The ->downloadable() function returns a 404 not found. So I have made a controller to return the download from Storage. This function does work. Is there a way to replace the downloadable() url to this custom url so it downloads via the controller instead? Or is there another better way to handle these private files?
Screenshot_2023-09-18_at_16.30.12.png
Screenshot_2023-09-18_at_16.26.41.png
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Download private files
FilamentFFilament / ❓┊help
3y ago
FileUpload download/preview file from private storage
FilamentFFilament / ❓┊help
3y ago
FileUpload (Download Private)
FilamentFFilament / ❓┊help
3y ago
File upload for large files
FilamentFFilament / ❓┊help
15mo ago