F
Filament5mo ago
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(),
2 Replies
Rahul
Rahul5mo ago
how to solve it ??
Vp
Vp5mo ago
I never try avatar() with maxSize but if this is the case then it's a bug, suggesting you to submit an issue on github or if you can, make a PR for fixes