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