© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
12 replies
TranceCode

must be a file of type:application/pdf

Hey guys, i have this code in my form:
Forms\Components\FileUpload::make('anyfiles')
                    ->label('Ingrese Documentos de respaldo')
                    ->multiple()
                    ->acceptedFileTypes(['application/pdf'])
                    ->directory($tenantFolder->name.'/expense/pdf')
                    ->maxFiles(3),
Forms\Components\FileUpload::make('anyfiles')
                    ->label('Ingrese Documentos de respaldo')
                    ->multiple()
                    ->acceptedFileTypes(['application/pdf'])
                    ->directory($tenantFolder->name.'/expense/pdf')
                    ->maxFiles(3),


i upload a pdf file but int the front return me an error

"Documentos de respaldo field must be a file of type: application/pdf."

any idea about this error?
image.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

must be a file of type: image/*.
FilamentFFilament / ❓┊help
3y ago
the attachment field must be a file of type:
FilamentFFilament / ❓┊help
2y ago
The image path field must be a file of type image/*
FilamentFFilament / ❓┊help
2y ago
getUrl() must be of type array
FilamentFFilament / ❓┊help
3y ago