mirror of
https://github.com/pelican-dev/panel.git
synced 2026-05-04 18:00:48 +03:00
Only allow image/png mimetype for Avatar (#1246)
This commit is contained in:
@@ -130,6 +130,7 @@ class EditProfile extends BaseEditProfile
|
||||
FileUpload::make('avatar')
|
||||
->visible(fn () => config('panel.filament.avatar-provider') === 'local')
|
||||
->avatar()
|
||||
->acceptedFileTypes(['image/png'])
|
||||
->directory('avatars')
|
||||
->getUploadedFileNameForStorageUsing(fn () => $this->getUser()->id . '.png'),
|
||||
]),
|
||||
|
||||
Reference in New Issue
Block a user