© 2026 Hedgehog Software, LLC

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

File Upload Issue with Avatar: MaxSize Validation Not Working

In the file upload, I use avatar() and apply maxSize(1024) for validation. However, the maxSize validation is not working when I am using the avatar.
here is the code:
  FileUpload::make('profile_image')
                            ->label('')
                            ->image()
                            ->avatar()
                            ->panelAspectRatio('1:1')
                            ->panelLayout('integrated')
                            ->maxSize(1024)
                            ->columnSpanFull(),
  FileUpload::make('profile_image')
                            ->label('')
                            ->image()
                            ->avatar()
                            ->panelAspectRatio('1:1')
                            ->panelLayout('integrated')
                            ->maxSize(1024)
                            ->columnSpanFull(),
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

Fileupload Maxsize not working?
FilamentFFilament / ❓┊help
3y ago
File upload validation error
FilamentFFilament / ❓┊help
3y ago
Translate File upload validation
FilamentFFilament / ❓┊help
3y ago
File upload not working with zip files
FilamentFFilament / ❓┊help
17mo ago