© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•16mo ago•
4 replies
Expecto Patronum

Form Component : Size avatar in Fileupload

Hi all , i have a question . im using fileupload and set avatar mode . is there a way to resize to make it a bit bigger ? because default size is small
Screenshot_2024-11-05_at_1.31.11_PM.png
Solution
You have to do two things to change the size, the first is to change the size of the field container like this:

FileUpload::make('avatar')
    ->avatar()
    ->extraAttributes([
        'style' => 'width: 500px; height: 500px;'
    ]),
FileUpload::make('avatar')
    ->avatar()
    ->extraAttributes([
        'style' => 'width: 500px; height: 500px;'
    ]),


Then you need to add this CSS to your Filament theme:

.filepond--root {
    width: 500px !important;
    height: 500px !important;
}
.filepond--root {
    width: 500px !important;
    height: 500px !important;
}
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

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

FileUpload component form custom Model
FilamentFFilament / ❓┊help
3y ago
FileUpload in Livewire Component
FilamentFFilament / ❓┊help
2y ago
Image display in FileUpload component
FilamentFFilament / ❓┊help
2y ago
filepond fileupload component
FilamentFFilament / ❓┊help
2y ago