© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
37 replies
GDG

Uploading font files .ttf and .otf

Has anybody been able to upload .ttf or .otf font files using FileUpload?

I have even tried the following
->acceptedFileTypes(['application/x-font-ttf', 'font/ttf', '.ttf']) 
->acceptedFileTypes(['application/x-font-ttf', 'font/ttf', '.ttf']) 
but I constantly get "File of Invalid Type".

Not doing anything crazy with the component and images etc work just fine.

Forms\Components\FileUpload::make('header_font_file')->directory('fonts')->visibility('public')->acceptedFileTypes(['application/x-font-ttf', 'font/ttf', '.ttf'])
Forms\Components\FileUpload::make('header_font_file')->directory('fonts')->visibility('public')->acceptedFileTypes(['application/x-font-ttf', 'font/ttf', '.ttf'])
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

SpatieMediaLibrary not uploading files Livewire Component?
FilamentFFilament / ❓┊help
3y ago
ERR_CONNECTION_REFUSED uploading files to resources
FilamentFFilament / ❓┊help
2y ago
FileUpload: Uploading (large files) directly to S3
FilamentFFilament / ❓┊help
2y ago
Storing multiple filenames at once when uploading multiple files
FilamentFFilament / ❓┊help
11mo ago